git » git-arr » commit 48a00cb

Fix one-line 'if' termination in tree, blob templates

author Vanya Sergeev
2014-06-30 06:02:18 UTC
committer Alberto Bertogli
2014-06-30 07:45:36 UTC
parent 2f65291ef15bd4d6a49c38f8809f64184b52a727

Fix one-line 'if' termination in tree, blob templates

The missing '% end' template keyword to these one-line if statements was
causing bottle 0.12.7 to incorrectly indent the following line, leading to an
IndentationError at runtime when the blob and tree templates are compiled.

Signed-off-by: Vanya Sergeev <vsergeev@gmail.com>

views/blob.html +3 -1
views/tree.html +3 -1

diff --git a/views/blob.html b/views/blob.html
index 9d0e9ff..6e493ab 100644
--- a/views/blob.html
+++ b/views/blob.html
@@ -29,7 +29,9 @@
     <a href="{{relroot}}">[{{repo.branch}}]</a> /
 % base = smstr(relroot)
 % for c in dirname.split('/'):
-%   if not c.raw: continue
+%   if not c.raw:
+%     continue
+%   end
     <a href="{{base.url}}{{c.url}}/">{{c.unicode}}</a> /
 %   base += c + '/'
 % end
diff --git a/views/tree.html b/views/tree.html
index 9682065..aad7402 100644
--- a/views/tree.html
+++ b/views/tree.html
@@ -27,7 +27,9 @@
     <a href="{{relroot}}">[{{repo.branch}}]</a> /
 % base = smstr(relroot)
 % for c in dirname.split('/'):
-%   if not c.raw: continue
+%   if not c.raw:
+%     continue
+%   end
     <a href="{{base.url}}{{c.url}}/">{{c.unicode}}</a> /
 %   base += c + '/'
 % end