diff --git a/src/calibre/ebooks/conversion/plugins/docx_input.py b/src/calibre/ebooks/conversion/plugins/docx_input.py index 0ebad740a7..37572a65e3 100644 --- a/src/calibre/ebooks/conversion/plugins/docx_input.py +++ b/src/calibre/ebooks/conversion/plugins/docx_input.py @@ -19,9 +19,8 @@ class DOCXInput(InputFormatPlugin): help=_('Normally, if a large image is present at the start of the document that looks like a cover, ' 'it will be removed from the document and used as the cover for created ebook. This option ' 'turns off that behavior.')), - OptionRecommendation(name='docx_notes_nopb', recommended_value=False, - help=_('Normally, a page break is added after every footnote, ' - 'This option turns off that behavior.')), + OptionRecommendation(name='docx_no_pagebreaks_between_notes', recommended_value=False, + help=_('Do not insert a page break after every endnote.')), } @@ -29,5 +28,5 @@ class DOCXInput(InputFormatPlugin): def convert(self, stream, options, file_ext, log, accelerators): from calibre.ebooks.docx.to_html import Convert - return Convert(stream, detect_cover=not options.docx_no_cover, log=log, notes_nopb=options.docx_notes_nopb)() + return Convert(stream, detect_cover=not options.docx_no_cover, log=log, notes_nopb=options.docx_no_pagebreaks_between_notes)() diff --git a/src/calibre/gui2/convert/docx_input.py b/src/calibre/gui2/convert/docx_input.py index d2048ebeb2..fdd0e13752 100644 --- a/src/calibre/gui2/convert/docx_input.py +++ b/src/calibre/gui2/convert/docx_input.py @@ -18,6 +18,6 @@ class PluginWidget(Widget, Ui_Form): def __init__(self, parent, get_option, get_help, db=None, book_id=None): Widget.__init__(self, parent, - ['docx_no_cover', 'docx_notes_nopb']) + ['docx_no_cover', 'docx_no_pagebreaks_between_notes']) self.initialize_options(get_option, get_help, db, book_id) diff --git a/src/calibre/gui2/convert/docx_input.ui b/src/calibre/gui2/convert/docx_input.ui index 2d45e8f39c..ef4c24b491 100644 --- a/src/calibre/gui2/convert/docx_input.ui +++ b/src/calibre/gui2/convert/docx_input.ui @@ -22,9 +22,9 @@ - + - Do not add a page after before every footnote + Do not add a page after after every endnote