diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-04-08 16:51:01 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-04-08 16:51:01 -0700 |
commit | c82ee315de3df059946c1623005c504c0cb5aa16 (patch) | |
tree | 3b97b1eb882856d6dad29674d3debeb9a98c47e2 | |
parent | 17b04995161847494f00e7e7a6ecdff3d5775266 (diff) | |
download | pandoc-c82ee315de3df059946c1623005c504c0cb5aa16.tar.gz |
DocBook reader: properly handle title in section element.
Previously we just got `section_title` for section (though sect1, sect2,
etc. were handled properly). Closes #4526.
-rw-r--r-- | src/Text/Pandoc/Readers/DocBook.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/DocBook.hs b/src/Text/Pandoc/Readers/DocBook.hs index 6bc4584c2..5939f3888 100644 --- a/src/Text/Pandoc/Readers/DocBook.hs +++ b/src/Text/Pandoc/Readers/DocBook.hs @@ -1049,6 +1049,7 @@ parseInline (Elem e) = | not (null xrefLabel) = xrefLabel | otherwise = case qName (elName el) of "chapter" -> descendantContent "title" el + "section" -> descendantContent "title" el "sect1" -> descendantContent "title" el "sect2" -> descendantContent "title" el "sect3" -> descendantContent "title" el |