# HG changeset patch # User Dirkjan Ochtman # Date 1213784039 -7200 # Node ID 0dbdf47421f52b939b2b74e5de338a95aecaffe1 # Parent 49c0be9eb8c4e6433d2640aecba2164397730ce9 graph: tweak the indentation algorithm diff -r 49c0be9eb8c4 -r 0dbdf47421f5 templates/static/graph.js --- a/templates/static/graph.js Wed Jun 18 11:09:18 2008 +0200 +++ b/templates/static/graph.js Wed Jun 18 12:13:59 2008 +0200 @@ -93,9 +93,11 @@ end = line[1]; color = line[2]; - if (end > this.columns) { + if (end > this.columns || start > this.columns) { this.columns += 1; - } else if (start == this.columns && start > end) { + } + + if (start == this.columns && start > end) { var fold = true; }