Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Assign an XHTML/Transitional doctype to the converted document, to al…

…low for the use of HTML entities like  .

git-svn-id: https://svn.calendarserver.org/repository/calendarserver/CalendarServer/trunk@8006 e27351fd-9f3e-4f54-a53b-843176b1656c
  • Loading branch information
glyph committed Aug 23, 2011
1 parent fc1caa1 commit be4947ac7267723ea91e2fb5d3a9306674c7bf17
Showing with 4 additions and 0 deletions.
  1. +4 −0 twistedcaldav/mail.py
@@ -191,6 +191,10 @@ def _fixup(data, rendererName):
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
)

0 comments on commit be4947a

Please sign in to comment.
You can’t perform that action at this time.