From bc07764e40c1fbda8e90408879ecda577c2bc3c1 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sat, 26 Nov 2011 11:18:39 +0000 Subject: [PATCH] Used stout.write() instead of console.log() Because console.log() processes C/C++ printf() style markers such as "%d", which happens to appear in the jQuery source code. --- cook.js | 2 +- test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cook.js b/cook.js index 8d1e48680..64a912e98 100644 --- a/cook.js +++ b/cook.js @@ -12,4 +12,4 @@ var store = new tiddlywiki.TiddlyWiki(); var theRecipe = new recipe.Recipe(store,filename); -console.log(theRecipe.cook()); +process.stdout.write(theRecipe.cook()); diff --git a/test.sh b/test.sh index 38b4d36e3..9725c4c73 100755 --- a/test.sh +++ b/test.sh @@ -10,7 +10,7 @@ cook $PWD/test/data/tiddlywiki.com/index.html.recipe -d $PWD -o tmp/oldcooked.ht node cook.js $PWD/test/data/tiddlywiki.com/index.html.recipe > tmp/newcooked.html || exit 1 # compare the two -# opendiff tmp/oldcooked.html tmp/newcooked.html +opendiff tmp/oldcooked.html tmp/newcooked.html # split the newly cooked tiddlywiki into tiddlers mkdir -p tmp/tiddlers