SNB output options UI

This commit is contained in:
Kovid Goyal 2018-07-05 05:04:05 +05:30
parent 619e855c1b
commit cc539d549c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -721,6 +721,17 @@ def htmlz_output(container):
g.appendChild(checkbox('htmlz_title_filename', _('Use book title as the filename for the HTML file')))
# }}}
# SNB Output {{{
@ep
def snb_output(container):
g = E.div(class_='simple-group')
container.appendChild(g)
g.appendChild(checkbox('snb_insert_empty_line', _('Insert &empty line between paragraphs')))
g.appendChild(checkbox('snb_dont_indent_first_line', _('Don\'t indent the &first line for each paragraph')))
g.appendChild(checkbox('snb_hide_chapter_name', _('Hide &chapter name')))
g.appendChild(checkbox('snb_full_screen', _('Optimize for full-&screen view ')))
# }}}
def restore_defaults():
for setting in registry:
set(setting, get_option_default_value(setting))