Code

Added the wrap="hard" attribute to the textarea of the note field so the
[roundup.git] / roundup / htmltemplate.py
index 46a2111e8b6196e17cb9919b98a5b9bdc5e646d6..1a083b056711fdf9193e0fa013c73145487bd7e1 100644 (file)
@@ -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 '<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 @@ 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
 #