Skip to content

Commit 65afccc

Browse files
author
Engelbert Gruber
committed
In do_history: replace "." in date by " " so html wraps more sensible.
Should this be done in date's string converter ?
1 parent 93409c4 commit 65afccc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

roundup/htmltemplate.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: htmltemplate.py,v 1.50 2002-01-05 02:35:10 richard Exp $
18+
# $Id: htmltemplate.py,v 1.51 2002-01-10 10:02:15 grubert Exp $
1919

2020
__doc__ = """
2121
Template engine.
@@ -457,8 +457,9 @@ def do_history(self, **args):
457457
_('<td><span class="list-item"><strong>Args</strong></span></td>')]
458458

459459
for id, date, user, action, args in self.cl.history(self.nodeid):
460+
date_s = str(date).replace("."," ")
460461
l.append('<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>'%(
461-
date, user, action, args))
462+
date_s, user, action, args))
462463
l.append('</table>')
463464
return '\n'.join(l)
464465

@@ -885,6 +886,9 @@ def render(self, form):
885886

886887
#
887888
# $Log: not supported by cvs2svn $
889+
# Revision 1.50 2002/01/05 02:35:10 richard
890+
# I18N'ification
891+
#
888892
# Revision 1.49 2001/12/20 15:43:01 rochecompaan
889893
# Features added:
890894
# . Multilink properties are now displayed as comma separated values in

0 commit comments

Comments
 (0)