git.iko.soy/typeable/pandoc
on master help sign in
EPUB writer: Fixed bug with `--epub-stylesheet`.

Now the contents of `writerEpubStylesheet` (set by `--epub-stylesheet`) should again work, and take precedence over a stylesheet specified in the metadata.

commitca3c292f30c04bd24287d554f08a7911c808a4e2 authorJohn MacFarlane <fiddlosopher@gmail.com> dateFri 13 Dec 2013, 11:10 (13 years ago) parent6d0cd92
1 file changed+1−2
src/Text/Pandoc/Writers/EPUB.hs+1−2
src/Text/Pandoc/Writers/EPUB.hs+1−2
@@ -288,8 +288,7 @@ metadataFromMeta opts meta = EPUBMetadata{
288288 rights = metaValueToString <$> lookupMeta "rights" meta
289289 coverImage = lookup "epub-cover-image" (writerVariables opts) `mplus`
290290 (metaValueToString <$> lookupMeta "cover-image" meta)
291− stylesheet = (StylesheetContents <$>
292− lookup "epub-stylesheet" (writerVariables opts)) `mplus`
291+ stylesheet = (StylesheetContents <$> writerEpubStylesheet opts) `mplus`
293292 ((StylesheetPath . metaValueToString) <$>
294293 lookupMeta "stylesheet" meta)
295294