Skip to content

Commit

Permalink
Fixed --no-last-newline with --textmate
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Oct 13, 2009
1 parent 3ab3c2e commit afd433e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sparkup
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Parser:

# Strip newline if not needed
if self.options.has("no-last-newline"):
output = re.sub(r'\n[^\n\r]*$', '', output)
output = re.sub(r'\n\s*$', '', output)

# TextMate mode
if self.options.has("textmate"):
Expand Down

0 comments on commit afd433e

Please sign in to comment.