From bd984abc0fc9056aa5b74a92be6f77b3f868ad3d Mon Sep 17 00:00:00 2001 From: Andrew Henry Date: Wed, 28 Oct 2015 11:09:52 -0700 Subject: [PATCH 1/2] Changed encoding of images to address https://github.com/nasa/openmctweb/issues/203 --- docs/gendocs.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/gendocs.js b/docs/gendocs.js index cd61b9a9bf..8bc44ffa72 100644 --- a/docs/gendocs.js +++ b/docs/gendocs.js @@ -187,8 +187,10 @@ GLOBAL.window = GLOBAL.window || GLOBAL; // nomnoml expects window to be define destPath = path.dirname(destination), streamOptions = {}; if (file.match(/png$/)){ - streamOptions.encoding = 'binary'; + console.log("Encoding " + file + " as binary"); + streamOptions.encoding = null; } else { + console.log("Encoding " + file + " as utf8"); streamOptions.encoding = 'utf8'; } From 4708ac0ec11489cccd6ca395d50cc35bf5a2d057 Mon Sep 17 00:00:00 2001 From: Andrew Henry Date: Wed, 28 Oct 2015 11:26:20 -0700 Subject: [PATCH 2/2] Removed console.log --- docs/gendocs.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/gendocs.js b/docs/gendocs.js index 8bc44ffa72..30182e30e7 100644 --- a/docs/gendocs.js +++ b/docs/gendocs.js @@ -187,10 +187,8 @@ GLOBAL.window = GLOBAL.window || GLOBAL; // nomnoml expects window to be define destPath = path.dirname(destination), streamOptions = {}; if (file.match(/png$/)){ - console.log("Encoding " + file + " as binary"); streamOptions.encoding = null; } else { - console.log("Encoding " + file + " as utf8"); streamOptions.encoding = 'utf8'; }