Skip to content

Commit

Permalink
ebook_base.py: use "style.css" dataEntry, #299
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Feb 8, 2021
1 parent 4adb83a commit 0d20d24
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pyglossary/ebook_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,13 @@ def add_group(state):
if entry is None:
break
if entry.isData():
if entry.getFileName() == "style.css":
self.add_file_manifest(
"OEBPS/style.css",
"style.css",
entry.data.decode("utf-8"),
"text/css",
)
continue

prefix = self.get_prefix(entry.s_word)
Expand Down

0 comments on commit 0d20d24

Please sign in to comment.