Fix "Not able to set default page breaks before expression"

This commit is contained in:
Kovid Goyal 2009-08-23 10:45:23 -06:00
parent c7afb6dcd4
commit 828c12c63e
2 changed files with 6 additions and 3 deletions

View File

@ -46,7 +46,8 @@ class Plumber(object):
'tags', 'book_producer', 'language'
]
def __init__(self, input, output, log, report_progress=DummyReporter(), dummy=False):
def __init__(self, input, output, log, report_progress=DummyReporter(),
dummy=False, merge_plugin_recs=True):
'''
:param input: Path to input file.
:param output: Path to output file/directory
@ -483,6 +484,7 @@ OptionRecommendation(name='language',
for x in getattr(self, w):
temp.add(x.clone())
setattr(self, w, temp)
if merge_plugin_recs:
self.merge_plugin_recommendations()
@classmethod

View File

@ -41,7 +41,8 @@ class ConfigTabs(QTabWidget):
log = Log()
log.outputs = []
self.plumber = Plumber('dummy.epub', 'dummy.epub', log, dummy=True)
self.plumber = Plumber('dummy.epub', 'dummy.epub', log, dummy=True,
merge_plugin_recs=False)
def widget_factory(cls):
return cls(self, self.plumber.get_option_by_name,