Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Only expand css if there is extrafont
  • Loading branch information
kthoden committed Jul 19, 2019
1 parent 9788ba9 commit de1a219
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions imxml2epub.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8; mode: python -*-
# Time-stamp: <2019-07-15 15:51:11 (kthoden)>
# Time-stamp: <2019-07-19 13:29:31 (kthoden)>

""" Convert a customized DocBook XML file into a set of files that
constitute the contents of an EPUB file.
Expand Down Expand Up @@ -498,9 +498,8 @@ def add_css_snippet(css_snippet, css_file):

if args.extra_font_selector:
css_selector = args.extra_font_selector

css_snippet = create_extra_font_css(css_selector, extra_fonts)
add_css_snippet(css_snippet, OUTPUT_DIR / "OEBPS/eoa-epub.css")
css_snippet = create_extra_font_css(css_selector, extra_fonts)
add_css_snippet(css_snippet, OUTPUT_DIR / "OEBPS/eoa-epub.css")

# Shortcut for namespace
htmlns = "{http://www.w3.org/1999/xhtml}"
Expand Down

0 comments on commit de1a219

Please sign in to comment.