[issue18583] Idle: enhance FormatParagraph

2020-06-07 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18583] Idle: enhance FormatParagraph

2017-06-19 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.7 ___ Python tracker ___ ___

[issue18583] Idle: enhance FormatParagraph

2017-06-19 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: +IDLE versions: +Python 3.6 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker ___

[issue18583] Idle: enhance FormatParagraph

2013-08-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Based on working with the #18226 patch, I now think that rewrapping partial lines is a bug. Although I removed some problematical tests, I think there is still one that verifies buggy behavior. The outline of steps (which necessarily omits some details) would

[issue18583] Idle: enhance FormatParagraph

2013-08-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Note to myself. The current test suite has one test commented out because it worked with EditorWindow but not the mock. It is possible that it is a mark-gravity issue. (I ran into this with the mock for IdleHistory.). --

[issue18583] Idle: enhance FormatParagraph

2013-08-12 Thread Phil Webster
Phil Webster added the comment: I've attached a patch that attempts to address the issues above. For the tests, I made some changes because the cursor doesn't end in exactly the same spot with line endings. Here's a quick summary of the changes: 1. Removed format_paragraph and format_comment

[issue18583] Idle: enhance FormatParagraph

2013-08-12 Thread R. Jayakrishnan
Changes by R. Jayakrishnan raaj...@gmail.com: -- nosy: +JayKrish ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18583 ___ ___ Python-bugs-list

[issue18583] Idle: enhance FormatParagraph

2013-08-09 Thread Phil Webster
Phil Webster added the comment: In the case of no selection would it make sense to only format if the cursor is in a string/comment? If not in a string or comment, the single line that the cursor is in could be formatted with a line ending backslash or not at all. Otherwise Format Paragraph

[issue18583] Idle: enhance FormatParagraph

2013-08-07 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- dependencies: +IDLE Unit test for FormatParagrah.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18583 ___

[issue18583] Idle: enhance FormatParagraph

2013-07-29 Thread Phil Webster
Changes by Phil Webster webster.p...@gmail.com: -- nosy: +philwebster ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18583 ___ ___ Python-bugs-list

[issue18583] Idle: enhance FormatParagraph

2013-07-29 Thread Todd Rovito
Changes by Todd Rovito rovit...@gmail.com: -- nosy: +Todd.Rovito ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18583 ___ ___ Python-bugs-list

[issue18583] Idle: enhance FormatParagraph

2013-07-28 Thread Terry J. Reedy
New submission from Terry J. Reedy: Writing tests for FormatParagraph.py #18226 revealed that it could use some improvements. At minimum, some for format_paragraph should probably be replaced with textwrap.wrap (or the class) in order to handles double spacing after sentences.