summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Faye-Lund <erik.faye-lund@collabora.com>2019-01-21 15:32:15 +0100
committerErik Faye-Lund <erik.faye-lund@collabora.com>2019-01-22 10:46:48 +0100
commit1048324b5b3df11d13d27055dd6f29f6b47675dd (patch)
tree4a6581c2e18d6d1481bffaa2e564178c3633024e
parent12e39b82f21d7277c8923c1181a2d699f4736797 (diff)
summary/html: ensure xml-line is the very first line
Otherwise, GNOME Web (Epiphany) refuse to render the result. Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
-rw-r--r--templates/feature.mako3
-rw-r--r--templates/index.mako3
2 files changed, 4 insertions, 2 deletions
diff --git a/templates/feature.mako b/templates/feature.mako
index 9abd5bc31..7d2c400d9 100644
--- a/templates/feature.mako
+++ b/templates/feature.mako
@@ -1,3 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
<%!
import posixpath # this must be posixpath, since we want /'s not \'s
import re
@@ -25,7 +27,6 @@
return href.replace('\\', '/')
%>
-<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
diff --git a/templates/index.mako b/templates/index.mako
index 49a8b1c86..6338fecb4 100644
--- a/templates/index.mako
+++ b/templates/index.mako
@@ -1,3 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
<%!
import os
import posixpath # this must be posixpath, since we want /'s not \'s
@@ -57,7 +59,6 @@
return href.replace('\\', '/')
%>
-<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">