civodul pushed a commit to tag 1.8
in repository guix.

commit fde819f2e22e0fb84dc6d8fc4602a00577137d0a
Author: Eelco Dolstra <[email protected]>
Date:   Wed Aug 13 19:06:20 2014 +0200

    nix-log2xml: Handle newlines
---
 src/nix-log2xml/log2xml.cc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/nix-log2xml/log2xml.cc b/src/nix-log2xml/log2xml.cc
index e26fb00..31cea60 100644
--- a/src/nix-log2xml/log2xml.cc
+++ b/src/nix-log2xml/log2xml.cc
@@ -137,6 +137,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] == '\n') cout << "\n";
         else if (line[i] >= 0 && line[i] < 32 && line[i] != 9) cout << 
"&#xfffd;";
         else if (i + sz + 33 < line.size() &&
             string(line, i, sz) == storeDir &&

Reply via email to