aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Text/Pandoc/Writers/Docbook.hs2
-rw-r--r--tests/writer.docbook3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/Docbook.hs b/src/Text/Pandoc/Writers/Docbook.hs
index f11338590..90bd1d3a4 100644
--- a/src/Text/Pandoc/Writers/Docbook.hs
+++ b/src/Text/Pandoc/Writers/Docbook.hs
@@ -282,7 +282,7 @@ inlineToDocbook opts (Math t str)
fixNS = everywhere (mkT fixNS')
inlineToDocbook _ (RawInline f x) | f == "html" || f == "docbook" = text x
| otherwise = empty
-inlineToDocbook _ LineBreak = inTagsSimple "literallayout" empty
+inlineToDocbook _ LineBreak = flush $ inTagsSimple "literallayout" (text "\n")
inlineToDocbook _ Space = space
inlineToDocbook opts (Link txt (src, _)) =
if isPrefixOf "mailto:" src
diff --git a/tests/writer.docbook b/tests/writer.docbook
index 54d27f789..d8a5c505b 100644
--- a/tests/writer.docbook
+++ b/tests/writer.docbook
@@ -67,7 +67,8 @@
Here’s one with a bullet. * criminey.
</para>
<para>
- There should be a hard line break<literallayout></literallayout>here.
+ There should be a hard line break<literallayout>
+</literallayout>here.
</para>
</sect1>
<sect1 id="block-quotes">