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
This commit is contained in:
parent
ec1be2bdc9
commit
e4880319e6
2 changed files with 4 additions and 0 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -100,6 +100,9 @@ pandoc (0.3) unstable; urgency=low
|
||||||
markdown standard. Now any number of `s can begin inline code,
|
markdown standard. Now any number of `s can begin inline code,
|
||||||
which will end with the same number of `s. For example, to
|
which will end with the same number of `s. For example, to
|
||||||
have two backticks as code, write ``` `` ```.
|
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
|
* Made handling of code blocks more consistent. Previously, some
|
||||||
readers allowed trailing newlines, while others stripped them.
|
readers allowed trailing newlines, while others stripped them.
|
||||||
|
|
|
@ -433,6 +433,7 @@ whitespace = do
|
||||||
-- hard line break
|
-- hard line break
|
||||||
linebreak = do
|
linebreak = do
|
||||||
htmlTag "br"
|
htmlTag "br"
|
||||||
|
option ' ' newline
|
||||||
return LineBreak
|
return LineBreak
|
||||||
|
|
||||||
str = do
|
str = do
|
||||||
|
|
Loading…
Add table
Reference in a new issue