View Single Post
Old 07-09-2018, 10:45 AM   #30
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 876
Karma: 3501146
Join Date: Jan 2017
Location: Poland
Device: Various
Two suggestions:

1. Save heading name template to prefs
File: dialog.py

Is:
Code:
        prefs['add_chapter_template'] = 'Chapter'
Change to:
Code:
        if options.SINGLE_FILE_SELECTED == False:
            if options.SUFFIX_CHOICE == '':
                prefs['add_chapter_template'] = 'Chapter'
            else:
                prefs['add_chapter_template'] = options.SUFFIX_CHOICE
2. Ignore template if "Use numbered headings only" is enabled
(Perhaps I do not understand this option, but if ... numbered ... only – ignoring is a good idea.)
File: cutils.py (approx. 250 line, before the first use of SUFFIX_CHOICE).

Code:
                if options.NUM_HEADINGS_CHOICE  == 'Yes':
                    options.SUFFIX_CHOICE = ''
BeckyEbook is online now   Reply With Quote