Permalink
Browse files

Fix initial crowded <pre> output

  • Loading branch information...
1 parent da88a6d commit cc02194d32f2e0662c894c8fbe706e0db16e696f @wking wking committed Nov 18, 2012
Showing with 3 additions and 1 deletion.
  1. +2 −0 html2text.py
  2. +1 −1 test/pre.md
View
@@ -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 += " "
View
@@ -1,5 +1,5 @@
-a
+ a
b
c

0 comments on commit cc02194

Please sign in to comment.