diff options
-rw-r--r-- | src/Text/Pandoc/Readers/DocBook.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |