# HG changeset patch # User Mads Kiilerich # Date 1467211927 -7200 # Node ID 42d1e1ab41a8df6016615a78be0de2e5d0090467 # Parent 02cfb2197c635508f86f2d3904c892b450de35cd js: clean-up of trailing whitespace in graph.js diff -r 02cfb2197c63 -r 42d1e1ab41a8 kallithea/public/js/graph.js --- a/kallithea/public/js/graph.js Wed Jun 29 16:47:47 2016 +0200 +++ b/kallithea/public/js/graph.js Wed Jun 29 16:52:07 2016 +0200 @@ -28,7 +28,7 @@ // row_id_prefix is prefix that is applied to get row id's this.canvas = document.getElementById(canvas_id); var content = document.getElementById(content_id); - + if (!document.createElement("canvas").getContext) this.canvas = window.G_vmlCanvasManager.initElement(this.canvas); if (!this.canvas) { // canvas creation did for some reason fail - fail silently @@ -100,7 +100,7 @@ } var next = document.getElementById(row_id_prefix+(idx+1)); var extra = 0; - + cur = data[i]; node = cur[0]; in_l = cur[1]; @@ -116,7 +116,7 @@ end = line[1]; color = line[2]; obsolete_line = line[3]; - + x = Math.floor(base_x - box_size * start); // figure out if this is a dead-end; @@ -157,7 +157,7 @@ { this.setColor(color, 0.0, 0.65); } - + this.ctx.lineWidth=this.line_width; this.ctx.beginPath(); if (obsolete_line) @@ -183,12 +183,12 @@ this.ctx.stroke(); this.ctx.setLineDash([]); // reset the dashed line, if any } - + column = node[0]; color = node[1]; - + x = Math.floor(base_x - box_size * column); - + this.setColor(color, 0.25, 0.75); @@ -216,7 +216,7 @@ idx++; } - + } } diff -r 02cfb2197c63 -r 42d1e1ab41a8 scripts/whitespacecleanup.sh --- a/scripts/whitespacecleanup.sh Wed Jun 29 16:47:47 2016 +0200 +++ b/scripts/whitespacecleanup.sh Wed Jun 29 16:52:07 2016 +0200 @@ -18,6 +18,7 @@ sed -i -e 's/^\([^ ,/]\+ [^,]*[^ ,]\) *, *\(.\)/\1,\n\2/g' kallithea/public/css/{style,contextbar}.css sed -i -e 's/^\([^ ,/].*\) */\1 /g' kallithea/public/css/{style,contextbar}.css sed -i -e 's,^--$,-- ,g' kallithea/templates/email_templates/main.txt +sed -i -e 's,[ ][ ]*$,,g' -e 's, , ,g' kallithea/public/js/graph.js hg mani | xargs chmod -x hg loc 'set:!binary()&grep("^#!")&!(**_tmpl.py)&!(**/template**)' | xargs chmod +x