From 6eb593f663a06db828617b8c7e10410f4c0a8245 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 18 Oct 2023 06:49:33 +0530 Subject: [PATCH] Fix #2039587 [A minor correction](https://bugs.launchpad.net/calibre/+bug/2039587) --- src/calibre/gui2/convert/txt_output.py | 4 ++++ src/calibre/gui2/convert/txt_output.ui | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/convert/txt_output.py b/src/calibre/gui2/convert/txt_output.py index 0f7fd27c1f..afca70c9d0 100644 --- a/src/calibre/gui2/convert/txt_output.py +++ b/src/calibre/gui2/convert/txt_output.py @@ -23,6 +23,10 @@ class PluginWidget(Widget, Ui_Form): for x in get_option('txt_output_formatting').option.choices: self.opt_txt_output_formatting.addItem(x) self.initialize_options(get_option, get_help, db, book_id) + if self.COMMIT_NAME != 'txt_output': + self.image_note_label.setText(_( + 'Note that for images to be preserved, the formatting option above must be markdown or textile' + ' and also enable the setting to not remove image references.')) def break_cycles(self): Widget.break_cycles(self) diff --git a/src/calibre/gui2/convert/txt_output.ui b/src/calibre/gui2/convert/txt_output.ui index a6e53e7ee3..bd5dd00aed 100644 --- a/src/calibre/gui2/convert/txt_output.ui +++ b/src/calibre/gui2/convert/txt_output.ui @@ -130,9 +130,9 @@ - + - Note that images will not be preserved. For that, convert to TXTZ instead. + Note that images will not be preserved. For that, convert to TXTZ, with output format Markdown. true