From 0c478d2f4d7459c4af4e7608ed45ae3b2f09c7dc Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 25 Nov 2008 02:30:35 +0000 Subject: [PATCH] * Ignore carriage returns. --- 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 8a3cbc8c4..b2a25eefa 100644 --- a/src/nix-log2xml/log2xml.cc +++ b/src/nix-log2xml/log2xml.cc @@ -124,6 +124,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] < 32 && line[i] != 9) cout << "�"; else if (i + sz + 33 < line.size() && string(line, i, sz) == storeDir &&