From 1c26f2c516bc8db1073dbe5f46bb14d512d1c7bb Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 12 May 2012 12:24:26 -0700 Subject: DocBook reader: Promote level 0 headers to 1 even if dbBook not set. --- src/Text/Pandoc/Readers/DocBook.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc/Readers') diff --git a/src/Text/Pandoc/Readers/DocBook.hs b/src/Text/Pandoc/Readers/DocBook.hs index 9b4acef12..f2f24b6cc 100644 --- a/src/Text/Pandoc/Readers/DocBook.hs +++ b/src/Text/Pandoc/Readers/DocBook.hs @@ -809,7 +809,7 @@ parseBlock (Elem e) = isEntry x = named "entry" x || named "td" x || named "th" x parseRow = mapM (parseMixed plain . elContent) . filterChildren isEntry sect n = do isbook <- gets dbBook - let n' = if isbook then n + 1 else n + let n' = if isbook || n == 0 then n + 1 else n headerText <- case filterChild (named "title") e of Just t -> getInlines t Nothing -> return mempty -- cgit v1.2.3