[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-patches
Subject:    [Patches] [ python-Patches-961387 ] Make IDLE's paragraph
From:       noreply () sourceforge ! net (SourceForge ! net)
Date:       2004-10-25 1:29:41
Message-ID: E1CLrnj-0002XM-DY () sc8-sf-web4 ! sourceforge ! net
[Download RAW message or body]

Patches item #961387, was opened at 2004-05-27 03:39
Message generated for change (Comment added) made by tim_one
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=961387&group_id=5470

Category: IDLE
Group: Python 2.4
Status: Closed
Resolution: None
Priority: 5
Submitted By: Raymond Hettinger (rhettinger)
Assigned to: Kurt B. Kaiser (kbk)
Summary: Make IDLE's paragraph reformatting width configurable

Initial Comment:
The current reformatting width is hardcoded at 70.
This patch makes that option configurable.

----------------------------------------------------------------------

>Comment By: Tim Peters (tim_one)
Date: 2004-10-24 19:29

Message:
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.

----------------------------------------------------------------------

Comment By: Raymond Hettinger (rhettinger)
Date: 2004-06-04 02:30

Message:
Logged In: YES 
user_id=80475

Going ahead with the patch.  Feel free to revert or adjust
in any way you see fit.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=961387&group_id=5470

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic