git.iko.soy/typeable/pandoc
on master help sign in
Modified HTML reader to skip a newline following a <br> tag.

Otherwise the newline will be treated as a space at the beginning of the next line. git-svn-id: https://pandoc.googlecode.com/svn/trunk@410 788f1e2b-df1e-0410-8736-df70ead52e1b

commite4880319e66493948e198cdd8b3d18ba572a2967 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateWed 3 Jan 2007, 20:52 (20 years ago) parentec1be2b
2 files changed+4
debian/changelog+3 src/Text/Pandoc/Readers/HTML.hs+1
debian/changelog+3
@@ -100,6 +100,9 @@ pandoc (0.3) unstable; urgency=low
100100 markdown standard. Now any number of `s can begin inline code,
101101 which will end with the same number of `s. For example, to
102102 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.
103106
104107 * Made handling of code blocks more consistent. Previously, some
105108 readers allowed trailing newlines, while others stripped them.
src/Text/Pandoc/Readers/HTML.hs+1
@@ -433,6 +433,7 @@ whitespace = do
433433-- hard line break
434434linebreak = do
435435 htmlTag "br"
436+ option ' ' newline
436437 return LineBreak
437438
438439str = do