[prev in list] [next in list] [prev in thread] [next in thread]
List: trac-tickets
Subject: [Trac-tickets] [The Trac Project] #1743: text of notify mail is
From: noreply () edgewall ! com (The Trac Project)
Date: 2005-06-30 21:52:40
Message-ID: 043.3971437673f966d8a849a2116dffb1be () edgewall ! com
[Download RAW message or body]
#1743: text of notify mail is broken
---------------------+------------------------------------------------------
Id: 1743 | Status: new
Component: general | Modified: Thu Jun 30 21:52:37 2005
Severity: minor | Milestone:
Priority: normal | Version: devel
Owner: jonas | Reporter: Shun-ichi Goto <gotoh@taiyo.co.jp>
---------------------+------------------------------------------------------
I think HEAD rev of {{{format_props()}}} makes incorrect formatting text
caused by changeset:1832. The column size values are exchanged for left
and right side on use.
I don't know why these changes are required.
I made patch to correct.
{{{
Index: Notify.py
===================================================================
--- Notify.py (revision 1875)
+++ Notify.py (working copy)
@@ -233,10 +233,10 @@
width[idx] = len(f)
if len(fval) > width[idx + 1]:
width[idx + 1] = len(fval)
- format = ('%%%is: %%-%is | ' % (width[2], width[3]),
- ' %%%is: %%-%is%s' % (width[0], width[1], CRLF))
+ format = ('%%%is: %%-%is | ' % (width[0], width[1]),
+ ' %%%is: %%-%is%s' % (width[2], width[3], CRLF))
i = 1
- l = (width[2] + width[3] + 5)
+ l = (width[0] + width[1] + 5)
sep = l*'-' + '+' + (self.COLS-l)*'-'
txt = sep + CRLF
big = []
@@ -247,7 +247,7 @@
big.append((f.capitalize(), fval))
else:
txt += format[i % 2] % (f.capitalize(), fval)
- if i % 2:
+ if (i % 2) == 0:
txt += '\n'
if big:
txt += sep
}}}
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/1743>
The Trac Project <>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic