summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy White <jwhite@codeweavers.com>2014-02-07 14:53:57 -0600
committerJeremy White <jwhite@codeweavers.com>2014-05-20 12:30:48 -0500
commitdeb555fb1605aea3e22f56ad5fa7af828d7ef3b8 (patch)
treeb079068ccf0d146fdf5cd1beedae01b56f393b79
parent19ade3cf38cc5f5b61fd038f5ce5f4cdb080e9ca (diff)
Tweak hexdump to not generate new lines.
-rw-r--r--utils.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils.js b/utils.js
index 167f184..9eb42ff 100644
--- a/utils.js
+++ b/utils.js
@@ -63,7 +63,10 @@ function hexdump_buffer(a)
hex += "0";
hex += h + " ";
- str += String.fromCharCode(mg[i]);
+ if (mg[i] == 10 || mg[i] == 13 || mg[i] == 8)
+ str += ".";
+ else
+ str += String.fromCharCode(mg[i]);
if ((i % 16 == 15) || (i == (mg.length - 1)))
{