[Tracker-discuss] [issue75] Improve wrapping of comment text
A.M. Kuchling
metatracker at psf.upfronthosting.co.za
Mon Jan 15 15:48:08 CET 2007
New submission from A.M. Kuchling <amk at amk.ca>:
Long lines containing no newlines aren't wrapped by the conversion process,
resulting in a very wide window. See
http://psf.upfronthosting.co.za/roundup/tracker/issue1619060 for an example.
Perhaps the algorithm should be:
1) split apart the comment at the newlines.
2) determine the length of the longest line.
3) if it's >100 (or 80, or some slightly-too-long limit), run the comment
through the textwrap.wrap() function.
You'd have to add some special-case code to avoid rewrapping code
excerpts.
----------
messages: 347
nosy: amk
priority: bug
status: unread
title: Improve wrapping of comment text
______________________________________________________
Meta Tracker <metatracker at psf.upfronthosting.co.za>
<http://psf.upfronthosting.co.za/roundup/meta/issue75>
______________________________________________________
More information about the Tracker-discuss
mailing list