From b5af8eed3877ff0c99e14b12220562db406c1eba Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 4 Jun 2019 09:20:29 -0700 Subject: Fix document section assignments in EPUB writer. For example, introduction should go in bodymatter, not frontmatter, and epigraph, conclusion, and afterward should go in bodymatter, not backmatter. For the full list of assignments, see the manual. Closes #5546. --- src/Text/Pandoc/Writers/EPUB.hs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Writers/EPUB.hs b/src/Text/Pandoc/Writers/EPUB.hs index 062ab19ed..82b6e8221 100644 --- a/src/Text/Pandoc/Writers/EPUB.hs +++ b/src/Text/Pandoc/Writers/EPUB.hs @@ -584,11 +584,14 @@ pandocToEPUB version opts doc = do _ -> (Pandoc nullMeta bs, "bodymatter") frontMatterTypes = ["prologue", "abstract", "acknowledgments", "copyright-page", "dedication", - "foreword", "halftitle", - "introduction", "preface", + "credits", "keywords", "imprint", + "contributors", "other-credits", + "errata", "revision-history", + "titlepage", "halftitlepage", "seriespage", + "foreword", "preface", "seriespage", "titlepage"] - backMatterTypes = ["afterword", "appendix", "colophon", - "conclusion", "epigraph"] + backMatterTypes = ["appendix", "colophon", "bibliography", + "index"] chapterEntries <- zipWithM chapToEntry [1..] chapters -- cgit v1.2.3