Blame calibre-cssprofiles.patch
|
Ionuț Arțăriși |
3a00c84 |
diff -up calibre/src/calibre/ebooks/oeb/stylizer.py.cssprofiles calibre/src/calibre/ebooks/oeb/stylizer.py
|
|
Ionuț Arțăriși |
3a00c84 |
--- calibre/src/calibre/ebooks/oeb/stylizer.py.cssprofiles 2009-10-11 19:44:34.190050494 +0300
|
|
Ionuț Arțăriși |
3a00c84 |
+++ calibre/src/calibre/ebooks/oeb/stylizer.py 2009-10-11 19:44:54.840926064 +0300
|
|
Ionuț Arțăriși |
66dadbf |
@@ -18,7 +18,10 @@ from xml.dom import SyntaxErr as CSSSynt
|
|
Ionuț Arțăriși |
3a00c84 |
import cssutils
|
|
Ionuț Arțăriși |
3a00c84 |
from cssutils.css import CSSStyleRule, CSSPageRule, CSSStyleDeclaration, \
|
|
Ionuț Arțăriși |
3a00c84 |
CSSValueList, CSSFontFaceRule, cssproperties
|
|
Ionuț Arțăriși |
3a00c84 |
-from cssutils import profile as cssprofiles
|
|
Ionuț Arțăriși |
66dadbf |
+from cssutils import errorhandler
|
|
Ionuț Arțăriși |
66dadbf |
+log = errorhandler.ErrorHandler()
|
|
Ionuț Arțăriși |
66dadbf |
+from calibre.css_profiles import Profiles
|
|
Ionuț Arțăriși |
66dadbf |
+cssprofiles = Profiles(log=log)
|
|
Ionuț Arțăriși |
3a00c84 |
from lxml import etree
|
|
Ionuț Arțăriși |
3a00c84 |
from lxml.cssselect import css_to_xpath, ExpressionError, SelectorSyntaxError
|
|
Ionuț Arțăriși |
3a00c84 |
from calibre.ebooks.oeb.base import XHTML, XHTML_NS, CSS_MIME, OEB_STYLES
|