aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2014-04-04 22:01:12 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2014-04-04 22:06:25 -0700
commitee2e769cd7ee075876c974f94817e6eee294bedd (patch)
tree49050a5d6cf18cf9b35cc4a8d192c1c92b1303d2 /src
parent8c014967c629f8ab38b860af8cbdbcf5aa111937 (diff)
downloadpandoc-ee2e769cd7ee075876c974f94817e6eee294bedd.tar.gz
DocBook reader: Better treatment of formalpara.
We now emit the title (if present) as a separate paragraph with boldface text. Closes #1215.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/DocBook.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Readers/DocBook.hs b/src/Text/Pandoc/Readers/DocBook.hs
index 4fb38a07d..d58f8b3c5 100644
--- a/src/Text/Pandoc/Readers/DocBook.hs
+++ b/src/Text/Pandoc/Readers/DocBook.hs
@@ -639,10 +639,10 @@ parseBlock (Elem e) =
"para" -> parseMixed para (elContent e)
"formalpara" -> do
tit <- case filterChild (named "title") e of
- Just t -> (<> str "." <> linebreak) <$> emph
- <$> getInlines t
+ Just t -> (para . strong . (<> str ".")) <$>
+ getInlines t
Nothing -> return mempty
- addToStart tit <$> parseMixed para (elContent e)
+ (tit <>) <$> parseMixed para (elContent e)
"simpara" -> parseMixed para (elContent e)
"ackno" -> parseMixed para (elContent e)
"epigraph" -> parseBlockquote