changeset 5990:42d1e1ab41a8

js: clean-up of trailing whitespace in graph.js
author Mads Kiilerich <madski@unity3d.com>
date Wed, 29 Jun 2016 16:52:07 +0200
parents 02cfb2197c63
children f65661179895
files kallithea/public/js/graph.js scripts/whitespacecleanup.sh
diffstat 2 files changed, 9 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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++;
 		}
-				
+
 	}
 
 }
--- 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