From fde819f2e22e0fb84dc6d8fc4602a00577137d0a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 13 Aug 2014 19:06:20 +0200 Subject: [PATCH] nix-log2xml: Handle newlines --- src/nix-log2xml/log2xml.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nix-log2xml/log2xml.cc b/src/nix-log2xml/log2xml.cc index e26fb0023..31cea60c3 100644 --- a/src/nix-log2xml/log2xml.cc +++ b/src/nix-log2xml/log2xml.cc @@ -137,6 +137,7 @@ void Decoder::finishLine() if (line[i] == '<') cout << "<"; else if (line[i] == '&') cout << "&"; 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 (i + sz + 33 < line.size() && string(line, i, sz) == storeDir &&