Phil Webster added the comment:

This patch moves the comment_header code to reformat_comment, adds tests for 
reformat_comment, and implements the fix that Todd mentioned in #18429. In 
addition, I changed the get_comment_header and get_indent regular expressions 
to only look for spaces and tabs, rather than any whitespace ('\s'). These 
functions should only ever get single lines, but I don't think characters like 
newline would ever need to be part of the comment header.

----------
Added file: 
http://bugs.python.org/file31032/18226IDLEUnitTestFormatParagraph6.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18226>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to