aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-04-08 16:51:01 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-04-08 16:51:01 -0700
commitc82ee315de3df059946c1623005c504c0cb5aa16 (patch)
tree3b97b1eb882856d6dad29674d3debeb9a98c47e2 /src/Text/Pandoc/Readers
parent17b04995161847494f00e7e7a6ecdff3d5775266 (diff)
downloadpandoc-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.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/DocBook.hs1
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