summary refs log tree commit diff
path: root/src/nix-log2xml/log2xml.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix-log2xml/log2xml.cc')
-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 8a3cbc8c42..b2a25eefa2 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 &&