[Cdd-commits] r661 - cdd/trunk/webtools
CDD Subversion Commit
noreply at alioth.debian.org
Thu Apr 3 22:38:59 UTC 2008
Author: tille
Date: Thu Apr 3 22:38:59 2008
New Revision: 661
Modified:
cdd/trunk/webtools/gexample.py
Log:
Use longdesc verbatim
Modified: cdd/trunk/webtools/gexample.py
==============================================================================
--- cdd/trunk/webtools/gexample.py (original)
+++ cdd/trunk/webtools/gexample.py Thu Apr 3 22:38:59 2008
@@ -28,8 +28,12 @@
or download the current DICOM standard as PDF files from
<a href="http://www.dclunie.com/dicom-status/status.html">http://www.dclunie.com/dicom-status/status.html</a> . """,
)
-
data['task_lc'] = data['task'].lower()
+
+# Make sure that long description is taken over verbatim because it might
+# contain several html tags
+data['tasklongdesc'] = genshi.Markup(data['tasklongdesc'])
+
template = loader.load('tasks.xhtml')
print template.generate(**data).render('xhtml')
More information about the Cdd-commits
mailing list