diff --git a/compile b/compile index d0a52d7749a4908d69586805bf4be5a141f73a97..1ae24f69d1f84b5eb6119a1f2bc6ccbb0b7a5a53 100755 --- a/compile +++ b/compile @@ -18,4 +18,7 @@ else ./devTools/tweeGo/tweego_nix86 -o bin/FC_pregmod.html src/config/start.tw fi +#Make the output prettier, replacing \t with a tab and \n with a newline +sed -i -e '/^.*<div id="store-area".*$/s/\\t/\t/g' -e '/^.*<div id="store-area".*$/s/\\n/\n/g' bin/FC_pregmod.html + rm -f src/config/start.tw diff --git a/compile-git b/compile-git index deb180dbb06854e3bfb862c7585c40a635732d58..ddcaaec22b0a60a750cb3dfee20eec34d98d4030 100755 --- a/compile-git +++ b/compile-git @@ -18,6 +18,9 @@ else ./devTools/tweeGo/tweego_nix86 -o bin/FC_pregmod_$HASH.html src/config/start.tw fi +#Make the output prettier, replacing \t with a tab and \n with a newline +sed -i -e '/^<div id="store-area".*$/s/\\t/\t/g' -e '/^<div id="store-area".*$/s/\\n/\n/g' bin/FC_pregmod.html + rm -f src/config/start.tw -echo "FC_pregmod_$HASH.html" compilation finished. \ No newline at end of file +echo "FC_pregmod_$HASH.html" compilation finished. diff --git a/src/js/heroCreator.tw b/src/js/heroCreator.tw index 3394569ab9ed64c2031225891b4a0a1c0320cfd8..302ff213c4b89603725d18ab7f7a2d349d6d229b 100644 --- a/src/js/heroCreator.tw +++ b/src/js/heroCreator.tw @@ -1,12 +1,9 @@ :: heroCreator.tw [script] window.getHeroSlave = function(heroSlave, baseHeroSlave) { - console.log("getHeroSlave for", heroSlave) var newSlave = clone(baseHeroSlave); for (var attrname in heroSlave) { newSlave[attrname] = heroSlave[attrname]; }; - console.log("returning ", newSlave); return newSlave; - }