Changeset - 42d1e1ab41a8
[Not reviewed]
default
0 2 0
Mads Kiilerich - 9 years ago 2016-06-29 16:52:07
madski@unity3d.com
js: clean-up of trailing whitespace in graph.js
2 files changed with 9 insertions and 8 deletions:
0 comments (0 inline, 0 general)
kallithea/public/js/graph.js
Show inline comments
 
@@ -28,7 +28,7 @@ function BranchRenderer(canvas_id, conte
 
	// 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 @@ function BranchRenderer(canvas_id, conte
 
			}
 
			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 @@ function BranchRenderer(canvas_id, conte
 
				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 @@ function BranchRenderer(canvas_id, conte
 
				{
 
					this.setColor(color, 0.0, 0.65);
 
				}
 
				
 

	
 
				this.ctx.lineWidth=this.line_width;
 
				this.ctx.beginPath();
 
				if (obsolete_line)
 
@@ -183,12 +183,12 @@ function BranchRenderer(canvas_id, conte
 
				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 @@ function BranchRenderer(canvas_id, conte
 

	
 
			idx++;
 
		}
 
				
 

	
 
	}
 

	
 
}
scripts/whitespacecleanup.sh
Show inline comments
 
@@ -18,6 +18,7 @@ sed -i -e '1s|, |,|g' kallithea/public/c
 
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
0 comments (0 inline, 0 general)