r365 - in python-clientform/trunk: . debian

Brian Sutherland jinty-guest at costa.debian.org
Thu Oct 26 15:28:54 CEST 2006


Author: jinty-guest
Date: 2006-10-26 13:28:54 +0000 (Thu, 26 Oct 2006)
New Revision: 365

Modified:
   python-clientform/trunk/ClientForm.py
   python-clientform/trunk/debian/changelog
Log:
Back-port patch from Zope 3.3 release branch.
(http://mail.zope.org/pipermail/checkins/2006-July/002877.html)


Modified: python-clientform/trunk/ClientForm.py
===================================================================
--- python-clientform/trunk/ClientForm.py	2006-10-26 13:11:55 UTC (rev 364)
+++ python-clientform/trunk/ClientForm.py	2006-10-26 13:28:54 UTC (rev 365)
@@ -642,6 +642,13 @@
                 d["__label"] = self._current_label
 
     def handle_data(self, data):
+        # according to http://www.w3.org/TR/html4/appendix/notes.html#h-B.3.1
+        # line break immediately after start tags or immediately before end
+        # tags must be ignored, but real browsers only ignore a line break
+        # after a start tag, so we'll do that.
+        if data[0:1] == '\n':
+            data = data[1:]
+
         debug("%s", data)
         if self._option is not None:
             # self._option is a dictionary of the OPTION element's HTML

Modified: python-clientform/trunk/debian/changelog
===================================================================
--- python-clientform/trunk/debian/changelog	2006-10-26 13:11:55 UTC (rev 364)
+++ python-clientform/trunk/debian/changelog	2006-10-26 13:28:54 UTC (rev 365)
@@ -1,3 +1,10 @@
+python-clientform (0.2.2-3) UNRELEASED; urgency=low
+
+  * Back-port patch from Zope 3.3 release branch
+    (http://mail.zope.org/pipermail/checkins/2006-July/002877.html)
+
+ -- Brian Sutherland <jinty at web.de>  Thu, 26 Oct 2006 15:15:01 +0200
+
 python-clientform (0.2.2-2) unstable; urgency=low
 
   * Added conflicts/replaces on older pythonX.Y-clientform packages.




More information about the pkg-zope-commits mailing list