mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-36390: IDLE: Combine region formatting methods. (GH-12481)
Rename paragraph.py to format.py and add region formatting methods from editor.py. Add tests for the latter.
This commit is contained in:
parent
fb26504d14
commit
82494aa6d9
7 changed files with 589 additions and 327 deletions
|
@ -60,6 +60,7 @@ menudefs = [
|
|||
]),
|
||||
|
||||
('format', [
|
||||
('F_ormat Paragraph', '<<format-paragraph>>'),
|
||||
('_Indent Region', '<<indent-region>>'),
|
||||
('_Dedent Region', '<<dedent-region>>'),
|
||||
('Comment _Out Region', '<<comment-region>>'),
|
||||
|
@ -68,7 +69,6 @@ menudefs = [
|
|||
('Untabify Region', '<<untabify-region>>'),
|
||||
('Toggle Tabs', '<<toggle-tabs>>'),
|
||||
('New Indent Width', '<<change-indentwidth>>'),
|
||||
('F_ormat Paragraph', '<<format-paragraph>>'),
|
||||
('S_trip Trailing Whitespace', '<<do-rstrip>>'),
|
||||
]),
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue