aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-09-14 11:36:21 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-09-14 11:36:21 -0700
commit47358831a4546b9373c0773e02f0ee7a180aa74d (patch)
tree65c8568b6896e7ba41b3ca54588b30e6ad20008f /src/Text/Pandoc
parent3f455aedfa653d55dc3f0bd491ae9d22b2a4c57a (diff)
downloadpandoc-47358831a4546b9373c0773e02f0ee7a180aa74d.tar.gz
EPUB toChapters: don't treat "refs" Div specially.
This should make toChapters work better if there are Divs around sections.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Writers/EPUB.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/EPUB.hs b/src/Text/Pandoc/Writers/EPUB.hs
index d0e85ae39..c9714b0a2 100644
--- a/src/Text/Pandoc/Writers/EPUB.hs
+++ b/src/Text/Pandoc/Writers/EPUB.hs
@@ -520,7 +520,7 @@ pandocToEPUB version opts doc = do
let toChapters :: [Block] -> State [Int] [Chapter]
toChapters [] = return []
- toChapters (Div ("refs",_,_) bs@(Header 1 _ _:_) : rest) =
+ toChapters (Div _ bs@(Header 1 _ _:_) : rest) =
toChapters (bs ++ rest)
toChapters (Header n attr@(_,classes,_) ils : bs) = do
nums <- get