[gtk-doc] mkdb: add xi namespace when generating a new main-doc
- From: Stefan Sauer <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] mkdb: add xi namespace when generating a new main-doc
- Date: Thu, 7 Jun 2018 07:11:55 +0000 (UTC)
commit 0cad1017294bd9b31bf00026a9057e19ee6c698d
Author: Stefan Sauer <ensonic users sf net>
Date: Thu Jun 7 09:09:49 2018 +0200
mkdb: add xi namespace when generating a new main-doc
Otherwise we'll get
"namespace error : Namespace prefix xi on include is not defined".
Also fix some indentation in the generated output.
gtkdoc/mkdb.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtkdoc/mkdb.py b/gtkdoc/mkdb.py
index 20eb389..37a6931 100644
--- a/gtkdoc/mkdb.py
+++ b/gtkdoc/mkdb.py
@@ -2450,7 +2450,7 @@ def OutputBook(main_file, book_top, book_bottom):
logging.info("no master doc, create default one at: " + main_file)
OUTPUT.write('''%s
-<book id="index">
+<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude">
<bookinfo>
<title>&package_name; Reference Manual</title>
<releaseinfo>
@@ -2462,8 +2462,7 @@ def OutputBook(main_file, book_top, book_bottom):
<chapter>
<title>[Insert title here]</title>
- %s
- </chapter>
+%s </chapter>
''' % (MakeDocHeader("book"), book_bottom))
if os.path.exists('xml/tree_index.sgml'):
OUTPUT.write(''' <chapter id="object-tree">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]