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>
This commit is contained in:
parent
2f65291ef1
commit
48a00cb460
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user