mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
Issue #20577: move configuration of FormatParagraph extension to new extension
configuration dialog. Patch by Tal Einat.
This commit is contained in:
parent
4d5115c7b5
commit
df9386940a
5 changed files with 10 additions and 24 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue