Skip to content

Commit 1052fec

Browse files
author
Richard Jones
committed
Added the wrap="hard" attribute to the textarea of the note field...
...so the messages wrap sanely.
1 parent b3259c7 commit 1052fec

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

roundup/htmltemplate.py

Lines changed: 7 additions & 5 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.37 2001-10-31 06:24:35 richard Exp $
18+
# $Id: htmltemplate.py,v 1.38 2001-10-31 06:58:51 richard Exp $
1919

2020
import os, re, StringIO, urllib, cgi, errno
2121

@@ -28,7 +28,6 @@
2828
except ImportError:
2929
StructuredText = None
3030

31-
3231
class TemplateFunctions:
3332
def __init__(self):
3433
self.form = None
@@ -79,7 +78,7 @@ def do_plain(self, property, escape=0):
7978
else:
8079
s = 'Plain: bad propclass "%s"'%propclass
8180
if escape:
82-
return cgi.escape(value)
81+
value = cgi.escape(value)
8382
return value
8483

8584
def do_stext(self, property, escape=0):
@@ -387,8 +386,8 @@ def do_note(self, rows=5, cols=80):
387386
go along with a change.
388387
'''
389388
# TODO: pull the value from the form
390-
return '<textarea name="__note" rows=%s cols=%s></textarea>'%(rows,
391-
cols)
389+
return '<textarea name="__note" wrap="hard" rows=%s cols=%s>'\
390+
'</textarea>'%(rows, cols)
392391

393392
# XXX new function
394393
def do_list(self, property, reverse=0):
@@ -844,6 +843,9 @@ def render(self, form):
844843

845844
#
846845
# $Log: not supported by cvs2svn $
846+
# Revision 1.37 2001/10/31 06:24:35 richard
847+
# Added do_stext to htmltemplate, thanks Brad Clements.
848+
#
847849
# Revision 1.36 2001/10/28 22:51:38 richard
848850
# Fixed ENOENT/WindowsError thing, thanks Juergen Hermann
849851
#

0 commit comments

Comments
 (0)