diff --git a/src/calibre/gui2/convert/txt_input.py b/src/calibre/gui2/convert/txt_input.py
index 62672cc0f9..acdf5f43c0 100644
--- a/src/calibre/gui2/convert/txt_input.py
+++ b/src/calibre/gui2/convert/txt_input.py
@@ -16,7 +16,8 @@ class PluginWidget(Widget, Ui_Form):
def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent,
- ['paragraph_type', 'formatting_type', 'markdown_disable_toc', 'preserve_spaces'])
+ ['paragraph_type', 'formatting_type', 'markdown_disable_toc',
+ 'preserve_spaces', 'txt_in_remove_indents'])
self.db, self.book_id = db, book_id
for x in get_option('paragraph_type').option.choices:
self.opt_paragraph_type.addItem(x)
diff --git a/src/calibre/gui2/convert/txt_input.ui b/src/calibre/gui2/convert/txt_input.ui
index 6cbd68135f..211b03294a 100644
--- a/src/calibre/gui2/convert/txt_input.ui
+++ b/src/calibre/gui2/convert/txt_input.ui
@@ -7,57 +7,95 @@
0
0
518
- 300
+ 353
Form
-
- -
-
-
- Paragraph style:
+
+
-
+
+
+ Structure
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ Paragraph style:
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ Formatting style:
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+
- -
-
-
- -
-
-
- Preserve &spaces
+
-
+
+
+ Common
+
+
-
+
+
+ Preserve &spaces
+
+
+
+ -
+
+
+ Remove indents at the beginning of lines
+
+
+
+
- -
-
-
- Qt::Vertical
-
-
-
- 20
- 213
-
-
-
-
- -
-
-
- -
-
-
- Formatting style:
-
-
-
- -
+
-
- Markdown Options
+ Markdown
-
@@ -83,6 +121,19 @@
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 213
+
+
+
+