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:
Miss Islington (bot) 2019-07-17 07:45:20 -07:00 committed by Terry Jan Reedy
parent 6cf7c45cb5
commit 1fc43a3faf
7 changed files with 589 additions and 327 deletions

View file

@ -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>>'),
]),