From deb555fb1605aea3e22f56ad5fa7af828d7ef3b8 Mon Sep 17 00:00:00 2001 From: Jeremy White Date: Fri, 7 Feb 2014 14:53:57 -0600 Subject: Tweak hexdump to not generate new lines. --- utils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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))) { -- cgit v1.2.3