From 48a00cb460f0e5252e28a59d462e40d891b0b54d Mon Sep 17 00:00:00 2001 From: Vanya Sergeev Date: Sun, 29 Jun 2014 23:02:18 -0700 Subject: [PATCH] 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 --- views/blob.html | 4 +++- 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 @@ [{{repo.branch}}] / % base = smstr(relroot) % for c in dirname.split('/'): -% if not c.raw: continue +% if not c.raw: +% continue +% end {{c.unicode}} / % 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 @@ [{{repo.branch}}] / % base = smstr(relroot) % for c in dirname.split('/'): -% if not c.raw: continue +% if not c.raw: +% continue +% end {{c.unicode}} / % base += c + '/' % end