--- U:\Python24\Lib\site-packages\trac\ticket\notification-old.py Tue Jun 12 15:34:31 2007
+++ U:\Python24\Lib\site-packages\trac\ticket\notification.py Tue Jun 12 17:13:27 2007
@@ -68,6 +68,7 @@
self.hdf.set_unescaped('email.ticket_props', self.format_props())
self.hdf.set_unescaped('email.ticket_body_hdr', self.format_hdr())
self.hdf['ticket.new'] = self.newticket
+ BRCRLF = '
' + CRLF
subject = self.format_subj()
link = self.env.abs_href.ticket(ticket.id)
if not self.newticket:
@@ -92,23 +93,23 @@
pfx = 'ticket.change.%s' % field
newv = ''
if field == 'description':
- new_descr = wrap(new, self.COLS, ' ', ' ', CRLF)
- old_descr = wrap(old, self.COLS, '> ', '> ', CRLF)
- old_descr = old_descr.replace(2*CRLF, CRLF + '>' + CRLF)
+ new_descr = wrap(new, self.COLS, ' ', ' ', BRCRLF)
+ old_descr = wrap(old, self.COLS, '> ', '> ', BRCRLF)
+ old_descr = old_descr.replace(2*CRLF, CRLF + '>' + BRCRLF)
cdescr = CRLF
- cdescr += 'Old description:' + 2*CRLF + old_descr + 2*CRLF
- cdescr += 'New description:' + 2*CRLF + new_descr + CRLF
+ cdescr += 'Old description:' + 2*CRLF + old_descr + CRLF + BRCRLF
+ cdescr += 'New description:' + 2*CRLF + new_descr + CRLF + BRCRLF
self.hdf.set_unescaped('email.changes_descr', cdescr)
elif field == 'cc':
(addcc, delcc) = self.diff_cc(old, new)
chgcc = ''
if delcc:
- chgcc += wrap(" * cc: %s (removed)" % ', '.join(delcc),
- self.COLS, ' ', ' ', CRLF)
+ chgcc += '
' + CRLF txt += CRLF if big: txt += sep for name, value in big: - txt += CRLF.join(['', name + ':', value, '', '']) + txt += CRLF.join([' | |
' + name + ':' + ' | |
' + value + ' |