Make comments not end with \n
This commit is contained in:
parent
b56665f5f4
commit
d4eefe4202
|
@ -231,8 +231,11 @@ public class SaneTsv
|
||||||
{
|
{
|
||||||
var commentBytes = new byte[j - i - 1];
|
var commentBytes = new byte[j - i - 1];
|
||||||
Array.Copy(inputBuffer, i + 1, commentBytes, 0, j - i - 1);
|
Array.Copy(inputBuffer, i + 1, commentBytes, 0, j - i - 1);
|
||||||
|
if (currentComment.Length > 0)
|
||||||
|
{
|
||||||
|
currentComment.Append('\n');
|
||||||
|
}
|
||||||
currentComment.Append(Encoding.UTF8.GetString(commentBytes));
|
currentComment.Append(Encoding.UTF8.GetString(commentBytes));
|
||||||
currentComment.Append("\n");
|
|
||||||
i = j;
|
i = j;
|
||||||
currentLineStart = i + 1;
|
currentLineStart = i + 1;
|
||||||
line++;
|
line++;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user