[Zope-Checkins] SVN: Zope/trunk/ Don't nest block tags inside HTML <p> tags in zExceptions.ExceptionFormatter.

Tres Seaver tseaver at palladion.com
Sat May 8 00:46:48 EDT 2010


Log message for revision 112183:
  Don't nest block tags inside HTML <p> tags in zExceptions.ExceptionFormatter.
  
  LP #351006
  

Changed:
  U   Zope/trunk/doc/CHANGES.rst
  U   Zope/trunk/src/zExceptions/ExceptionFormatter.py

-=-
Modified: Zope/trunk/doc/CHANGES.rst
===================================================================
--- Zope/trunk/doc/CHANGES.rst	2010-05-08 04:44:43 UTC (rev 112182)
+++ Zope/trunk/doc/CHANGES.rst	2010-05-08 04:46:47 UTC (rev 112183)
@@ -152,6 +152,9 @@
 Bugs Fixed
 ++++++++++
 
+- LP #351006:  Don't nest block tags inside HTML ``<p>`` tags in
+  ``zExceptions.ExceptionFormatter``.
+
 - LP #411837:  Handle resource files with ``.htm`` extention properly,
   as page template resources.
 

Modified: Zope/trunk/src/zExceptions/ExceptionFormatter.py
===================================================================
--- Zope/trunk/src/zExceptions/ExceptionFormatter.py	2010-05-08 04:44:43 UTC (rev 112182)
+++ Zope/trunk/src/zExceptions/ExceptionFormatter.py	2010-05-08 04:46:47 UTC (rev 112183)
@@ -208,7 +208,7 @@
         return cgi.escape(s)
 
     def getPrefix(self):
-        return '<p>Traceback (innermost last):\r\n<ul>'
+        return '<p>Traceback (innermost last):</p>\r\n<ul>'
 
     def formatSupplementLine(self, line):
         return '<b>%s</b>' % self.escape(str(line))
@@ -223,7 +223,7 @@
         return '<li>%s</li>' % line
 
     def formatLastLine(self, exc_line):
-        return '</ul>%s</p>' % self.escape(exc_line)
+        return '</ul><p>%s</p>' % self.escape(exc_line)
 
     def formatExtraInfo(self, supplement):
         getInfo = getattr(supplement, 'getInfo', None)



More information about the Zope-Checkins mailing list