Skip to content

Commit

Permalink
only strip trailing newlines from post content
Browse files Browse the repository at this point in the history
  • Loading branch information
posativ committed Apr 7, 2013
1 parent f8028c2 commit 37ff6ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acrylamid/readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def lastmodified(self):
def source(self):
"""Returns the actual, unmodified content."""
with io.open(self.filename, 'r', encoding='utf-8') as f:
return lchop(''.join(f.readlines()[self.offset:]).strip(), BOM_UTF8)
return lchop(''.join(f.readlines()[self.offset:]).strip('\n'), BOM_UTF8)

def __hash__(self):
return self.hashvalue
Expand Down

0 comments on commit 37ff6ac

Please sign in to comment.