Pass-through TAB and CR characters.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 28 Jan 2010 14:35:57 +0000 (14:35 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 12 Nov 2010 18:47:59 +0000 (18:47 +0000)
log.cpp

diff --git a/log.cpp b/log.cpp
index 73bc408..c917fe3 100644 (file)
--- a/log.cpp
+++ b/log.cpp
@@ -339,9 +339,9 @@ void DumpString(const char *str) {
         else if(c >= 0x20 && c <= 0x7e)
             TextChar(c);
         else if(c == '\t')
-            Text("\\t");
+            Text("&#09;");
         else if(c == '\r')
-            Text("\\r");
+            Text("&#13;");
         else if(c == '\n')
             Text("&#10;");
         else {
@@ -375,9 +375,9 @@ void DumpWString(const wchar_t *str) {
         else if(c >= 0x20 && c <= 0x7e)
             TextChar((char)c);
         else if(c == '\t')
-            Text("\\t");
+            Text("&#09;");
         else if(c == '\r')
-            Text("\\r");
+            Text("&#13;");
         else if(c == '\n')
             Text("&#10;");
         else {