Skip to content

Commit cc2f2b9

Browse files
committed
Made xhtml2epub more likely to set a valid itemId. The id hould be an
IDREF as mandated by OPF20.itemref-element.
1 parent 4ce95c9 commit cc2f2b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xhtml2epub.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ main = do
2424
loadItems :: FilePath -> IO BookItem
2525
loadItems p = do
2626
c <- B.readFile p
27-
return (BookItem ("http://localhost/"++np) np c opsMediatype (Just (ChapterMetadata np)))
27+
return (BookItem ("localhost-"++np) np c opsMediatype (Just (ChapterMetadata np)))
2828
where
2929
np = normalise p

0 commit comments

Comments
 (0)