Index: src/ostreams.cc |
diff --git a/src/ostreams.cc b/src/ostreams.cc |
index 0f5bec41d2b8b2a48685ddf7425ab6ceeb884df0..47c477f89289c8810499133488ebf75a18d6b019 100644 |
--- a/src/ostreams.cc |
+++ b/src/ostreams.cc |
@@ -165,7 +165,9 @@ OFStream& OFStream::flush() { |
OStream& operator<<(OStream& os, const AsUC16& c) { |
char buf[10]; |
- const char* format = (0x20 <= c.value && c.value <= 0x7F) |
+ const char* format = (c.value == '\n') || (c.value == '\t') || |
+ (c.value == '\r') || |
Sven Panne
2014/08/25 13:07:20
This indentation looks funny, is "git cl format" h
Vyacheslav Egorov (Google)
2014/08/25 15:56:33
The funny indentation is actually the result of ap
|
+ (0x20 <= c.value && c.value <= 0x7F) |
? "%c" |
: (c.value <= 0xff) ? "\\x%02x" : "\\u%04x"; |
snprintf(buf, sizeof(buf), format, c.value); |