EPUB writer: Ensure unique ids for styleesheets in content.opf.
Closes #5463.
This commit is contained in:
parent
6699471484
commit
dd344715f6
1 changed files with 3 additions and 3 deletions
|
@ -656,11 +656,11 @@ pandocToEPUB version opts doc = do
|
|||
,("media-type","application/xhtml+xml")] ++
|
||||
[("properties","nav") | epub3 ]) $ ()
|
||||
] ++
|
||||
[ unode "item" ! [("id","style"), ("href",fp)
|
||||
[ unode "item" ! [("id","stylesheet" ++ show n), ("href",fp)
|
||||
,("media-type","text/css")] $ () |
|
||||
fp <- map
|
||||
(n :: Int, fp) <- zip [1..] (map
|
||||
(makeRelative epubSubdir . eRelativePath)
|
||||
stylesheetEntries ] ++
|
||||
stylesheetEntries) ] ++
|
||||
map chapterNode (cpgEntry ++ (tpEntry : chapterEntries)) ++
|
||||
(case cpicEntry of
|
||||
[] -> []
|
||||
|
|
Loading…
Reference in a new issue