mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Make tweak_mode a class level variable
This commit is contained in:
parent
8da7fd2616
commit
91905e38f5
@ -129,6 +129,8 @@ class Container(object): # {{{
|
|||||||
book_type = 'oeb'
|
book_type = 'oeb'
|
||||||
#: If this container represents an unzipped book (a directory)
|
#: If this container represents an unzipped book (a directory)
|
||||||
is_dir = False
|
is_dir = False
|
||||||
|
#: The mode used to parse HTML and CSS (polishing uses tweak_mode=False and the editor uses tweak_mode=True)
|
||||||
|
tweak_mode = False
|
||||||
|
|
||||||
SUPPORTS_TITLEPAGES = True
|
SUPPORTS_TITLEPAGES = True
|
||||||
SUPPORTS_FILENAMES = True
|
SUPPORTS_FILENAMES = True
|
||||||
@ -138,7 +140,6 @@ class Container(object): # {{{
|
|||||||
self.log = log
|
self.log = log
|
||||||
self.html_preprocessor = HTMLPreProcessor()
|
self.html_preprocessor = HTMLPreProcessor()
|
||||||
self.css_preprocessor = CSSPreProcessor()
|
self.css_preprocessor = CSSPreProcessor()
|
||||||
self.tweak_mode = False
|
|
||||||
|
|
||||||
self.parsed_cache = {}
|
self.parsed_cache = {}
|
||||||
self.mime_map = {}
|
self.mime_map = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user