aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog3
-rw-r--r--src/Text/Pandoc/Readers/HTML.hs1
2 files changed, 4 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index ef8c77067..68942258b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -100,6 +100,9 @@ pandoc (0.3) unstable; urgency=low
markdown standard. Now any number of `s can begin inline code,
which will end with the same number of `s. For example, to
have two backticks as code, write ``` `` ```.
+ + 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.
* Made handling of code blocks more consistent. Previously, some
readers allowed trailing newlines, while others stripped them.
diff --git a/src/Text/Pandoc/Readers/HTML.hs b/src/Text/Pandoc/Readers/HTML.hs
index 79bdab76a..b3ddc8985 100644
--- a/src/Text/Pandoc/Readers/HTML.hs
+++ b/src/Text/Pandoc/Readers/HTML.hs
@@ -433,6 +433,7 @@ whitespace = do
-- hard line break
linebreak = do
htmlTag "br"
+ option ' ' newline
return LineBreak
str = do