nix-log2xml: Handle newlines
This commit is contained in:
parent
cb921f67c3
commit
fde819f2e2
1 changed files with 1 additions and 0 deletions
|
@ -137,6 +137,7 @@ void Decoder::finishLine()
|
||||||
if (line[i] == '<') cout << "<";
|
if (line[i] == '<') cout << "<";
|
||||||
else if (line[i] == '&') cout << "&";
|
else if (line[i] == '&') cout << "&";
|
||||||
else if (line[i] == '\r') ; /* ignore carriage return */
|
else if (line[i] == '\r') ; /* ignore carriage return */
|
||||||
|
else if (line[i] == '\n') cout << "\n";
|
||||||
else if (line[i] >= 0 && line[i] < 32 && line[i] != 9) cout << "�";
|
else if (line[i] >= 0 && line[i] < 32 && line[i] != 9) cout << "�";
|
||||||
else if (i + sz + 33 < line.size() &&
|
else if (i + sz + 33 < line.size() &&
|
||||||
string(line, i, sz) == storeDir &&
|
string(line, i, sz) == storeDir &&
|
||||||
|
|
Loading…
Reference in a new issue