diff options
author | Vanya Sergeev <vsergeev@gmail.com> | 2014-06-30 08:02:18 +0200 |
---|---|---|
committer | Alberto Bertogli <albertito@blitiri.com.ar> | 2014-06-30 09:45:36 +0200 |
commit | 48a00cb460f0e5252e28a59d462e40d891b0b54d (patch) | |
tree | aeec89ff420b4dcf7fc02992190c7ff3f1717a2e /views | |
parent | 2f65291ef15bd4d6a49c38f8809f64184b52a727 (diff) | |
download | git-arr-fork-48a00cb460f0e5252e28a59d462e40d891b0b54d.zip |
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>
Diffstat (limited to 'views')
-rw-r--r-- | views/blob.html | 4 | ||||
-rw-r--r-- | views/tree.html | 4 |
2 files changed, 6 insertions, 2 deletions
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 |