aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Brant2013-06-10 06:02:37 -0700
committerSean Brant2013-06-10 06:02:37 -0700
commit54f84954e8af233c255c5c4fb2c3cb1464c78cbf (patch)
tree9e6fff5ce017e1e9ae1ab4416284959e89b99f55
parent136b01994d69a3f70e4a789dfc9c8051e949ba8f (diff)
parent2188ceec0b11767e39a28ddb273112d6a9c8cc23 (diff)
downloadpykss-54f84954e8af233c255c5c4fb2c3cb1464c78cbf.tar.bz2
Merge pull request #2 from benknight/master
Fixing #1
-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()