[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
130/376: nix-log2xml: Handle newlines
From: |
Ludovic Courtès |
Subject: |
130/376: nix-log2xml: Handle newlines |
Date: |
Wed, 28 Jan 2015 22:04:31 +0000 |
civodul pushed a commit to tag 1.8
in repository guix.
commit fde819f2e22e0fb84dc6d8fc4602a00577137d0a
Author: Eelco Dolstra <address@hidden>
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 << "<";
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 &&
- 124/376: Fix warning about non-existant -I directories, (continued)
- 124/376: Fix warning about non-existant -I directories, Ludovic Courtès, 2015/01/28
- 127/376: Use regular file GC roots if possible, Ludovic Courtès, 2015/01/28
- 128/376: nix-log2xml: Handle UTF-8 characters, Ludovic Courtès, 2015/01/28
- 132/376: nix-shell: Use $XDG_RUNTIME_DIR, Ludovic Courtès, 2015/01/28
- 120/376: download-from-binary-cache.pl: Respect $SSL_CERT_FILE, Ludovic Courtès, 2015/01/28
- 123/376: Remove pointless NIX_LOG_TYPE environment variable, Ludovic Courtès, 2015/01/28
- 136/376: Propagate remote timeouts properly, Ludovic Courtès, 2015/01/28
- 131/376: Use $XDG_RUNTIME_DIR for temporary files, Ludovic Courtès, 2015/01/28
- 137/376: Reduce verbosity, Ludovic Courtès, 2015/01/28
- 133/376: Fix download-via-ssh, Ludovic Courtès, 2015/01/28
- 130/376: nix-log2xml: Handle newlines,
Ludovic Courtès <=
- 143/376: nix-store -l: Automatically pipe output into $PAGER, Ludovic Courtès, 2015/01/28
- 139/376: Fix --attr parsing, Ludovic Courtès, 2015/01/28
- 142/376: Reduce test verbosity, Ludovic Courtès, 2015/01/28
- 138/376: Doh, Ludovic Courtès, 2015/01/28
- 135/376: nix-build: Propagate exit status from nix-store -r, Ludovic Courtès, 2015/01/28
- 125/376: Refactor option handling, Ludovic Courtès, 2015/01/28
- 134/376: build-remote.pl: Provide defaults for $NIX_CURRENT_LOAD and $NIX_REMOTE_SYSTEMS, Ludovic Courtès, 2015/01/28
- 141/376: Filter Nix-specific ANSI escape sequences from stderr, Ludovic Courtès, 2015/01/28
- 140/376: Make hook shutdown more reliable, Ludovic Courtès, 2015/01/28
- 144/376: Add some color, Ludovic Courtès, 2015/01/28