From: richard Date: Wed, 31 Oct 2001 06:58:51 +0000 (+0000) Subject: Added the wrap="hard" attribute to the textarea of the note field so the X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e6c4c7f8d5631098772610818c9907b51081dac2;p=roundup.git Added the wrap="hard" attribute to the textarea of the note field so the messages wrap sanely. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@353 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/htmltemplate.py b/roundup/htmltemplate.py index 46a2111..1a083b0 100644 --- a/roundup/htmltemplate.py +++ b/roundup/htmltemplate.py @@ -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 @@ try: except ImportError: StructuredText = None - class TemplateFunctions: def __init__(self): self.form = None @@ -79,7 +78,7 @@ class TemplateFunctions: 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 @@ class TemplateFunctions: go along with a change. ''' # TODO: pull the value from the form - return ''%(rows, - cols) + return ''%(rows, cols) # XXX new function def do_list(self, property, reverse=0): @@ -844,6 +843,9 @@ class NewItemTemplate(TemplateFunctions): # # $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 #