I wanted to familiarize myself with Trac, so I pulled an unassigned
ticket off the list and wrote up a patch. Is this generally a safe way
to contribute?
The patch adds a new function to util.py, wiki_escape_newline, which
replaces line breaks with explicit line breaks. This method is then
called on the svn message in most places it is displayed.
Other changes:
* util.shorten_line - if explicit linebreaks ([[BR]]) are encountered,
return only the first line followed by an elipsis
* Log.log_receiver.item['log'] - now calls shorten_line
I'm not sure what is the right thing to do for the RSS feed, so I left
Log.log_receiver.item['log.raw'] alone. I thought that maybe basic html
<br/> tags might be acceptable, but they didn't validate.
--Cap
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ticket352
Type: text/x-patch
Size: 3824 bytes
Desc: not available
Url : /archive/trac/attachments/20040607/be9498eb/ticket352.bin
ticket off the list and wrote up a patch. Is this generally a safe way
to contribute?
The patch adds a new function to util.py, wiki_escape_newline, which
replaces line breaks with explicit line breaks. This method is then
called on the svn message in most places it is displayed.
Other changes:
* util.shorten_line - if explicit linebreaks ([[BR]]) are encountered,
return only the first line followed by an elipsis
* Log.log_receiver.item['log'] - now calls shorten_line
I'm not sure what is the right thing to do for the RSS feed, so I left
Log.log_receiver.item['log.raw'] alone. I thought that maybe basic html
<br/> tags might be acceptable, but they didn't validate.
--Cap
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ticket352
Type: text/x-patch
Size: 3824 bytes
Desc: not available
Url : /archive/trac/attachments/20040607/be9498eb/ticket352.bin