ソースを参照

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" />