Skip to content

Commit

Permalink
Fix initial crowded <pre> output
Browse files Browse the repository at this point in the history
  • Loading branch information
wking committed Nov 18, 2012
1 parent da88a6d commit cc02194
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions html2text.py
Expand Up @@ -594,6 +594,8 @@ def o(self, data, puredata=0, force=0):
if self.startpre:
#self.out(" :") #TODO: not output when already one there
self.startpre = 0
if not data.startswith("\n"): # <pre>stuff...
data = "\n" + data

bq = (">" * self.blockquote)
if not (force and data and data[0] == ">") and self.blockquote: bq += " "
Expand Down
2 changes: 1 addition & 1 deletion test/pre.md
@@ -1,5 +1,5 @@
a

a
b
c

Expand Down

0 comments on commit cc02194

Please sign in to comment.