aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pykss/comment.py2
1 files changed, 1 insertions, 1 deletions
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()