From 0c18f3a854efaba54367f66d0f572afcab7d57f0 Mon Sep 17 00:00:00 2001 From: Tim Lin Date: Wed, 4 Feb 2015 22:42:22 -0800 Subject: Append newline to the LineBreak of various writers This change improves output formatting of content with a large amount of force line breaks, such as line-blocks. The following writers are affected: * Dokuwiki * HTML * EPUB (via HTML) * LaTeX * MediaWiki * OpenDocument * Texinfo This commit resolves #1924 --- tests/dokuwiki_inline_formatting.dokuwiki | 3 ++- tests/writer.dokuwiki | 3 ++- tests/writer.html | 3 ++- tests/writer.latex | 3 ++- tests/writer.mediawiki | 3 ++- tests/writer.opendocument | 3 ++- tests/writer.texinfo | 3 ++- 7 files changed, 14 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/dokuwiki_inline_formatting.dokuwiki b/tests/dokuwiki_inline_formatting.dokuwiki index dd5cb52b4..262094184 100644 --- a/tests/dokuwiki_inline_formatting.dokuwiki +++ b/tests/dokuwiki_inline_formatting.dokuwiki @@ -6,7 +6,8 @@ Some people use single underlines for //emphasis//. Above the line is superscript and below the line is subscript. -A line\\ break. +A line\\ +break. hello %%//%% world %%**%% from %%__%% me diff --git a/tests/writer.dokuwiki b/tests/writer.dokuwiki index dc14e9b00..2c3c9b1b5 100644 --- a/tests/writer.dokuwiki +++ b/tests/writer.dokuwiki @@ -36,7 +36,8 @@ In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Beca Here’s one with a bullet. * criminey. -There should be a hard line break\\ here. +There should be a hard line break\\ +here. ---- diff --git a/tests/writer.html b/tests/writer.html index 6f7d1764b..1357fa7c4 100644 --- a/tests/writer.html +++ b/tests/writer.html @@ -35,7 +35,8 @@

Here’s a regular paragraph.

In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Because a hard-wrapped line in the middle of a paragraph looked like a list item.

Here’s one with a bullet. * criminey.

-

There should be a hard line break
here.

+

There should be a hard line break
+here.


Block Quotes

E-mail style:

diff --git a/tests/writer.latex b/tests/writer.latex index 5b41bac75..f7123be98 100644 --- a/tests/writer.latex +++ b/tests/writer.latex @@ -109,7 +109,8 @@ item. Here's one with a bullet. * criminey. -There should be a hard line break\\here. +There should be a hard line break\\ +here. \begin{center}\rule{0.5\linewidth}{\linethickness}\end{center} diff --git a/tests/writer.mediawiki b/tests/writer.mediawiki index efd43cb04..b8b99c5e7 100644 --- a/tests/writer.mediawiki +++ b/tests/writer.mediawiki @@ -36,7 +36,8 @@ In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Beca Here’s one with a bullet. * criminey. -There should be a hard line break
here. +There should be a hard line break
+here. ----- diff --git a/tests/writer.opendocument b/tests/writer.opendocument index 81c793a62..ac436150d 100644 --- a/tests/writer.opendocument +++ b/tests/writer.opendocument @@ -896,7 +896,8 @@ of a paragraph looked like a list item. Here’s one with a bullet. * criminey. There should be a hard line -breakhere. +break +here. Block Quotes diff --git a/tests/writer.texinfo b/tests/writer.texinfo index 7b59ea651..c5eb9748a 100644 --- a/tests/writer.texinfo +++ b/tests/writer.texinfo @@ -129,7 +129,8 @@ In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Beca Here's one with a bullet. * criminey. -There should be a hard line break@*here. +There should be a hard line break@* +here. @iftex @bigskip@hrule@bigskip -- cgit v1.2.3