git.iko.soy/typeable/pandoc
on master help sign in
Modified HTML reader to skip a newline following a <br> tag.
e488031fiddlosopher
debian/changelog+3
@@ -100,6 +100,9 @@ pandoc (0.3) unstable; urgency=low
100 markdown standard. Now any number of `s can begin inline code,
100 markdown standard. Now any number of `s can begin inline code,
101 which will end with the same number of `s. For example, to
101 which will end with the same number of `s. For example, to
102 have two backticks as code, write ``` `` ```.
102 have two backticks as code, write ``` `` ```.
103+ + Modified HTML reader to skip a newline following a <br> tag.
104+ Otherwise the newline will be treated as a space at the beginning
105+ of the next line.
103
106
104 * Made handling of code blocks more consistent. Previously, some
107 * Made handling of code blocks more consistent. Previously, some
105 readers allowed trailing newlines, while others stripped them.
108 readers allowed trailing newlines, while others stripped them.
src/Text/Pandoc/Readers/HTML.hs+1
@@ -433,6 +433,7 @@ whitespace = do
433-- hard line break
433-- hard line break
434linebreak = do
434linebreak = do
435 htmlTag "br"
435 htmlTag "br"
436+ option ' ' newline
436 return LineBreak
437 return LineBreak
437
438
438str = do
439str = do