aboutsummaryrefslogtreecommitdiffstats
path: root/generate_html.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2012-09-21 01:16:10 +0200
committerMatěj Cepl <mcepl@redhat.com>2012-09-21 01:18:10 +0200
commit6bd96be67dcfd6261a4c847fd98c215601591926 (patch)
tree0fb06ec37561f808f50d9f6b851a66c5f4b76206 /generate_html.py
parent2ab034b507f6d893f2553a4d9e4b2606cb8c54b9 (diff)
downloadhesla-6bd96be67dcfd6261a4c847fd98c215601591926.tar.gz
<script> cannot be self-closed
Also we shouldn't store generated output.html. And added empty hesla.js
Diffstat (limited to 'generate_html.py')
-rw-r--r--generate_html.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/generate_html.py b/generate_html.py
index ab968e8..43a84ef 100644
--- a/generate_html.py
+++ b/generate_html.py
@@ -87,11 +87,14 @@ def parse_file(filename):
text-align: right;
}
"""
- et.SubElement(head, "script",
+ script = et.SubElement(head, "script",
attrib={
"type": "text/javascript",
"src": "hesla.js"
})
+ # script element cannot be empty, otherwise we would get self-closed
+ # element, which is invalid for <script>
+ script.text = "\n"
title = et.SubElement(head, "title")
title.text = "Title"
body = et.SubElement(doc, "body")