diff --git a/src/calibre/gui2/convert/heuristics.py b/src/calibre/gui2/convert/heuristics.py
index 2b9df50457..904804f32e 100644
--- a/src/calibre/gui2/convert/heuristics.py
+++ b/src/calibre/gui2/convert/heuristics.py
@@ -21,7 +21,7 @@ class HeuristicsWidget(Widget, Ui_Form):
'italicize_common_cases', 'fix_indents',
'html_unwrap_factor', 'unwrap_lines',
'delete_blank_paragraphs', 'format_scene_breaks',
- 'dehyphenate']
+ 'dehyphenate', 'renumber_headings']
)
self.db, self.book_id = db, book_id
self.initialize_options(get_option, get_help, db, book_id)
@@ -53,6 +53,7 @@ class HeuristicsWidget(Widget, Ui_Form):
self.opt_delete_blank_paragraphs.setEnabled(state)
self.opt_format_scene_breaks.setEnabled(state)
self.opt_dehyphenate.setEnabled(state)
+ self.opt_renumber_headings(state)
self.opt_unwrap_lines.setEnabled(state)
if state and self.opt_unwrap_lines.checkState() == Qt.Checked:
diff --git a/src/calibre/gui2/convert/heuristics.ui b/src/calibre/gui2/convert/heuristics.ui
index e64e79e1df..c5f3c2cb3e 100644
--- a/src/calibre/gui2/convert/heuristics.ui
+++ b/src/calibre/gui2/convert/heuristics.ui
@@ -6,7 +6,7 @@
0
0
- 657
+ 811
479
@@ -80,42 +80,42 @@
- -
+
-
Delete blank lines between paragraphs
- -
+
-
Ensure scene breaks are consistently formatted
- -
+
-
Remove unnecessary hyphens
- -
+
-
Italicize common words and patterns
- -
+
-
Replace entity indents with CSS indents
- -
+
-
Qt::Vertical
@@ -141,6 +141,13 @@
+ -
+
+
+ Renumber sequences of <h1> or <h2> tags to prevent splitting
+
+
+