diff options
author | Gabriel Devillers <gdevillers@kalray.eu> | 2016-07-28 11:43:45 +0200 |
---|---|---|
committer | Gabriel Devillers <gdevillers@kalray.eu> | 2016-08-05 11:51:49 +0200 |
commit | 4c279d734e06afd0b5096092d3df414b32dbf71a (patch) | |
tree | 19fdcee54dc76fb1b245f708f57e7f5e4457a543 /lib/diff.js | |
parent | 7a8fec3ad912d5ee0f13c284e33f5fa45d02d8bc (diff) | |
download | compiler-explorer-4c279d734e06afd0b5096092d3df414b32dbf71a.tar.gz compiler-explorer-4c279d734e06afd0b5096092d3df414b32dbf71a.zip |
Minor cleanings.
Cleans app.js output from previous debug outputs.
Renamed debug functions concerning window.localStorage settings.
Diffstat (limited to 'lib/diff.js')
-rw-r--r-- | lib/diff.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/diff.js b/lib/diff.js index ac9260737..1f3203245 100644 --- a/lib/diff.js +++ b/lib/diff.js @@ -133,7 +133,7 @@ function cleanAndGetIndexes(text) { } end(); - console.log(JSON.stringify(finalText)+JSON.stringify(zones)); + // console.log(JSON.stringify(finalText)+JSON.stringify(zones)); return {text: finalText, zones: zones}; } @@ -180,9 +180,10 @@ function diffHandler(req, res, next) { })); } else { res.end(JSON.stringify({ - computedDiff: cleaned.text+ - "\n//// for reference: ////\n"+ // for debug only - wdiffResult.stdout.toString(), + computedDiff: cleaned.text, + //computedDiff: cleaned.text+ + // "\n//// for reference: ////\n"+ // for debug only + // wdiffResult.stdout.toString(), zones: cleaned.zones //computedDiff: "aaa\nbbb[-ccc-]\n[-ddd-]eee\n[-fff-]\nsafe" //computedDiff: "[-aaa-]" |