Roundup Tracker - Issues

Message596

Author jkew
Recipients
Date 2003-01-17.15:37:42
Message-id
In-reply-to
0.5.4 detects and makes into links URLs of the 
form http://stuff/stuff/...

Unfortunately, long links often get broken across 
multiple lines by the wrap="hard" on the Change 
Note textarea. The detection code then makes the 
first line of the URL into a link, leaving the second 
and subsequent lines alone.

For example, I cannot link to SourceForge tracker 
items from issue text as the SourceForge URLs are 
too long to fit on a single line.

I'm not sure this is solvable in the general case, but 
we might be able to do slightly better for common 
cases by using the following rules for link 
detection:

* a space always identifies the end of a link
* end-of-message always identifies the end of a 
link
* a blank line (a line containing only a newline) 
always identifies the end of a link
* a newline does *not* identify the end of a link

although this may rely too heavily on my 
assumption that browsers, when honouring the 
wrap="hard" attribute, leave trailing spaces at end-
of-line when wrapping at word boundaries but do 
not add trailing spaces when breaking long words 
across lines.

The other solution -- and tying back into 
the "Opera doesn't handle wrap=hard" bug -- 
would be for Roundup, not the browser, to perform 
text wrapping. This would mean that Roundup gets 
the links unadulterated by extraneous linebreaks.
History
Date User Action Args
2009-02-03 14:20:12adminlinkissue669789 messages
2009-02-03 14:20:12admincreate