[CalendarServer-changes] [8006] CalendarServer/trunk/twistedcaldav/mail.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Aug 22 19:53:33 PDT 2011


Revision: 8006
          http://trac.macosforge.org/projects/calendarserver/changeset/8006
Author:   glyph at apple.com
Date:     2011-08-22 19:53:33 -0700 (Mon, 22 Aug 2011)
Log Message:
-----------
Assign an XHTML/Transitional doctype to the converted document, to allow for the use of HTML entities like  .

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/mail.py

Modified: CalendarServer/trunk/twistedcaldav/mail.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/mail.py	2011-08-22 21:41:44 UTC (rev 8005)
+++ CalendarServer/trunk/twistedcaldav/mail.py	2011-08-23 02:53:33 UTC (rev 8006)
@@ -191,6 +191,10 @@
     document.documentElement.setAttribute(
         "xmlns:t", TEMPLATE_NAMESPACE
     )
+    document.doctype = (
+        'html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" '
+        '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"'
+    )
     document.documentElement.setAttribute(
         "t:render", rendererName
     )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110822/95c2a48e/attachment.html>


More information about the calendarserver-changes mailing list