Mercurial > p > roundup > code
diff roundup/htmltemplate.py @ 342:0b7d62e414b6
Added the wrap="hard" attribute to the textarea of the note field...
...so the messages wrap sanely.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 31 Oct 2001 06:58:51 +0000 |
| parents | 9311fa91f478 |
| children | e8d244a98ffd |
line wrap: on
line diff
--- a/roundup/htmltemplate.py Wed Oct 31 06:24:51 2001 +0000 +++ b/roundup/htmltemplate.py Wed Oct 31 06:58:51 2001 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: htmltemplate.py,v 1.37 2001-10-31 06:24:35 richard Exp $ +# $Id: htmltemplate.py,v 1.38 2001-10-31 06:58:51 richard Exp $ import os, re, StringIO, urllib, cgi, errno @@ -28,7 +28,6 @@ except ImportError: StructuredText = None - class TemplateFunctions: def __init__(self): self.form = None @@ -79,7 +78,7 @@ else: s = 'Plain: bad propclass "%s"'%propclass if escape: - return cgi.escape(value) + value = cgi.escape(value) return value def do_stext(self, property, escape=0): @@ -387,8 +386,8 @@ go along with a change. ''' # TODO: pull the value from the form - return '<textarea name="__note" rows=%s cols=%s></textarea>'%(rows, - cols) + return '<textarea name="__note" wrap="hard" rows=%s cols=%s>'\ + '</textarea>'%(rows, cols) # XXX new function def do_list(self, property, reverse=0): @@ -844,6 +843,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.37 2001/10/31 06:24:35 richard +# Added do_stext to htmltemplate, thanks Brad Clements. +# # Revision 1.36 2001/10/28 22:51:38 richard # Fixed ENOENT/WindowsError thing, thanks Juergen Hermann #
