diff options
| author | Benjamin Knight | 2013-06-09 23:50:28 -0700 |
|---|---|---|
| committer | Benjamin Knight | 2013-06-09 23:50:28 -0700 |
| commit | 2188ceec0b11767e39a28ddb273112d6a9c8cc23 (patch) | |
| tree | 9e6fff5ce017e1e9ae1ab4416284959e89b99f55 | |
| parent | 136b01994d69a3f70e4a789dfc9c8051e949ba8f (diff) | |
| download | pykss-2188ceec0b11767e39a28ddb273112d6a9c8cc23.tar.bz2 | |
Fixing #1 and any other issues where zero lines would be normalized.
| -rw-r--r-- | pykss/comment.py | 2 |
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() |
