indent HTML

darcs-hash:20080520180750-84dde-bdf9cca691ea8386ff66a482f4d890ce9e836ca3.gz
This commit is contained in:
Evan Prodromou 2008-05-20 14:07:50 -04:00
parent 2eab2c2d9d
commit 73469e9bb1

View File

@ -71,6 +71,7 @@ function common_show_header($pagetitle) {
header('Content-Type: application/xhtml+xml'); header('Content-Type: application/xhtml+xml');
$xw = new XMLWriter(); $xw = new XMLWriter();
$xw->setIndent(true);
$xw->openURI('php://output'); $xw->openURI('php://output');
$xw->startDocument('1.0', 'UTF-8'); $xw->startDocument('1.0', 'UTF-8');
$xw->writeDTD('html', '-//W3C//DTD XHTML 1.0 Strict//EN', $xw->writeDTD('html', '-//W3C//DTD XHTML 1.0 Strict//EN',