From 2188ceec0b11767e39a28ddb273112d6a9c8cc23 Mon Sep 17 00:00:00 2001 From: Benjamin Knight Date: Sun, 9 Jun 2013 23:50:28 -0700 Subject: Fixing #1 and any other issues where zero lines would be normalized. --- pykss/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pykss/comment.py b/pykss/comment.py index 5c9c705..e416e4b 100644 --- a/pykss/comment.py +++ b/pykss/comment.py @@ -47,7 +47,7 @@ def normalize(lines): if line: indents.append(len(match.group())) - indent = min(indents) + indent = min(indents) if indents else 0 return '\n'.join([line[indent:] for line in cleaned]).strip() -- cgit v1.2.3