Change default HTML output to HTML5 header.

This commit is contained in:
Jim Miller 2015-10-14 12:39:42 -05:00
parent 6dd1cc7daa
commit ab5c930248

View file

@ -33,9 +33,8 @@ class HTMLWriter(BaseStoryWriter):
def __init__(self, config, story):
BaseStoryWriter.__init__(self, config, story)
self.HTML_FILE_START = string.Template('''<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
self.HTML_FILE_START = string.Template('''<!DOCTYPE html>
<html>
<head>
<title>${title} by ${author}</title>
<style type="text/css">
@ -87,7 +86,6 @@ ${output_css}
def writeStoryImpl(self, out):
if self.hasConfig("cover_content"):
COVER = string.Template(self.getConfig("cover_content"))
else: