mirror of
https://github.com/python/cpython.git
synced 2025-08-19 08:11:46 +00:00
bpo-36390: IDLE: Combine region formatting methods. (GH-12481) (GH-14811)
Rename paragraph.py to format.py and add region formatting methods
from editor.py. Add tests for the latter.
(cherry picked from commit 82494aa6d9
)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
This commit is contained in:
parent
6cf7c45cb5
commit
1fc43a3faf
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