diff options
author | Matěj Cepl <mcepl@redhat.com> | 2012-09-21 01:16:10 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2012-09-21 01:18:10 +0200 |
commit | 6bd96be67dcfd6261a4c847fd98c215601591926 (patch) | |
tree | 0fb06ec37561f808f50d9f6b851a66c5f4b76206 /generate_html.py | |
parent | 2ab034b507f6d893f2553a4d9e4b2606cb8c54b9 (diff) | |
download | hesla-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.py | 5 |
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") |