This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Make IDLE's paragraph reformatting width configurable
Type: Stage:
Components: IDLE Versions: Python 2.4
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: kbk Nosy List: kbk, rhettinger, tim.peters
Priority: normal Keywords: patch

Created on 2004-05-27 07:39 by rhettinger, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
para.diff rhettinger, 2004-05-27 07:39 Diff for configurable paragraph reformatting
Messages (3)
msg46083 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2004-05-27 07:39
The current reformatting width is hardcoded at 70.
This patch makes that option configurable.
msg46084 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2004-06-04 06:30
Logged In: YES 
user_id=80475

Going ahead with the patch.  Feel free to revert or adjust
in any way you see fit.
msg46085 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2004-10-24 23:29
Logged In: YES 
user_id=31435

Reformatting comment blocks in IDLE has been driving me 
crazy in current IDLE, and I think this patch is the cause, via 
replacing

format_width = max(70-len(comment_header), 20)

with

format_width = max(maxformatwidth, len(comment_header), 
20)

instead of with

format_width = max(maxformatwidth - len(comment_header), 
20)

IOW, the original code put a bound on the after-format 
length of the line, while the new code merely bounds the 
after-format length of the text following the 
comment_header, ignoring how far indented the block was to 
begin with.

If nobody screams to the contrary in about 10 seconds 
<wink>, I'm going to change that.
History
Date User Action Args
2022-04-11 14:56:04adminsetgithub: 40297
2004-05-27 07:39:16rhettingercreate