diff -r 2013ef8f56e9 -r d75535983224 utils.py
--- a/utils.py Wed Oct 06 14:57:14 2010 +0200
+++ b/utils.py Thu Oct 07 19:04:07 2010 +0200
@@ -218,6 +218,11 @@
javascripts and stylesheets
"""
js_unload_code = u'jQuery(window).unload(unloadPageData);'
+ # Making '
def __init__(self):
super(HTMLHead, self).__init__()
@@ -291,14 +296,14 @@
w = self.write
# 1/ variable declaration if any
if self.jsvars:
- w(u'\n')
+ w(self.xhtml_safe_script_closing)
# 2/ css files
for cssfile, media in self.cssfiles:
w(u'\n' %
@@ -316,9 +321,9 @@
xml_escape(jsfile))
# 5/ post inlined scripts (i.e. scripts depending on other JS files)
if self.post_inlined_scripts:
- w(u'\n')
+ w(self.xhtml_safe_script_closing)
header = super(HTMLHead, self).getvalue()
if skiphead:
return header