Issue #20577: move configuration of FormatParagraph extension to new extension

configuration dialog.  Patch by Tal Einat.
This commit is contained in:
Terry Jan Reedy 2014-12-16 03:21:26 -05:00
parent 4d5115c7b5
commit df9386940a
5 changed files with 10 additions and 24 deletions

View file

@ -44,9 +44,11 @@ class FormatParagraph:
The length limit parameter is for testing with a known value.
"""
if limit == None:
if limit is None:
# The default length limit is that defined by pep8
limit = idleConf.GetOption(
'main', 'FormatParagraph', 'paragraph', type='int')
'extensions', 'FormatParagraph', 'max-width',
type='int', default=72)
text = self.editwin.text
first, last = self.editwin.get_selection_indices()
if first and last: