Modify ↓
#1743 closed defect (fixed)
text of notify mail is broken
Reported by: | Owned by: | Christopher Lenz | |
---|---|---|---|
Priority: | normal | Milestone: | 0.9 |
Component: | ticket system | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
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.
-
Notify.py
233 233 width[idx] = len(f) 234 234 if len(fval) > width[idx + 1]: 235 235 width[idx + 1] = len(fval) 236 format = ('%%%is: %%-%is | ' % (width[ 2], width[3]),237 ' %%%is: %%-%is%s' % (width[ 0], width[1], CRLF))236 format = ('%%%is: %%-%is | ' % (width[0], width[1]), 237 ' %%%is: %%-%is%s' % (width[2], width[3], CRLF)) 238 238 i = 1 239 l = (width[ 2] + width[3] + 5)239 l = (width[0] + width[1] + 5) 240 240 sep = l*'-' + '+' + (self.COLS-l)*'-' 241 241 txt = sep + CRLF 242 242 big = [] … … 247 247 big.append((f.capitalize(), fval)) 248 248 else: 249 249 txt += format[i % 2] % (f.capitalize(), fval) 250 if i % 2:250 if (i % 2) == 0: 251 251 txt += '\n' 252 252 if big: 253 253 txt += sep
Attachments (0)
Change History (4)
comment:1 by , 19 years ago
Milestone: | → 0.9 |
---|
comment:2 by , 19 years ago
Component: | general → ticket system |
---|---|
Description: | modified (diff) |
Owner: | changed from | to
Severity: | minor → normal |
Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
(Patch in description marked as diff for better formatting)