浏览代码

Include xml header and doctype.

Heikki Hokkanen 18 年前
父节点
当前提交
9781f9abc3
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      statgit

+ 4
- 1
statgit 查看文件

@@ -586,7 +586,10 @@ plot 'files_by_date.dat' using 1:2 smooth csplines
586 586
 			os.system('gnuplot %s' % f)
587 587
 
588 588
 	def printHeader(self, f):
589
-		f.write("""<html>
589
+		f.write(
590
+"""<?xml version="1.0" encoding="utf-8"?>
591
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
592
+<html>
590 593
 <head>
591 594
 	<title>StatGit</title>
592 595
 	<link rel="stylesheet" href="statgit.css" type="text/css" />