DocBook writer: for linebreak, but newline in literallayout.
Closes #725.
This commit is contained in:
parent
2e00ca20de
commit
f53e0a44ce
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue