aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2008-11-25 02:30:35 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2008-11-25 02:30:35 +0000
commit0c478d2f4d7459c4af4e7608ed45ae3b2f09c7dc (patch)
tree20d02bc204606522237cfe987edfdd87daf81aa0 /src
parent5024bde8f407582c9cb5a916f3b5603184f76eb7 (diff)
* Ignore carriage returns.
Diffstat (limited to 'src')
-rw-r--r--src/nix-log2xml/log2xml.cc1
1 files changed, 1 insertions, 0 deletions
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 << "&lt;";
else if (line[i] == '&') cout << "&amp;";
+ else if (line[i] == '\r') ; /* ignore carriage return */
else if (line[i] < 32 && line[i] != 9) cout << "&#xfffd;";
else if (i + sz + 33 < line.size() &&
string(line, i, sz) == storeDir &&