[gobject-introspection/wip/docs: 5/23] doctool: Switch to a computed page_style for all page templates
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/wip/docs: 5/23] doctool: Switch to a computed page_style for all page templates
- Date: Sat, 2 Feb 2013 00:49:13 +0000 (UTC)
commit eed71caaf397b596a0e98c7eaf13525d74fe06da
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Jan 31 11:14:19 2013 -0500
doctool: Switch to a computed page_style for all page templates
This is a quick cleanup before we inherit from a common template
for all pages.
Makefile-giscanner.am | 4 ++++
giscanner/doctemplates/C/mallard-C-class.tmpl | 2 +-
.../doctemplates/C/mallard-C-constructor.tmpl | 1 +
giscanner/doctemplates/C/mallard-C-default.tmpl | 2 +-
giscanner/doctemplates/C/mallard-C-enum.tmpl | 2 +-
giscanner/doctemplates/C/mallard-C-function.tmpl | 7 -------
giscanner/doctemplates/C/mallard-C-method.tmpl | 1 +
giscanner/doctemplates/C/mallard-C-namespace.tmpl | 2 +-
giscanner/doctemplates/C/mallard-C-property.tmpl | 2 +-
giscanner/doctemplates/C/mallard-C-record.tmpl | 2 +-
giscanner/doctemplates/C/mallard-C-signal.tmpl | 2 +-
giscanner/doctemplates/C/mallard-C-vfunc.tmpl | 2 +-
.../doctemplates/Python/mallard-Python-class.tmpl | 2 +-
.../Python/mallard-Python-constructor.tmpl | 1 +
.../Python/mallard-Python-default.tmpl | 2 +-
.../doctemplates/Python/mallard-Python-enum.tmpl | 2 +-
.../Python/mallard-Python-function.tmpl | 7 -------
.../doctemplates/Python/mallard-Python-method.tmpl | 1 +
.../Python/mallard-Python-namespace.tmpl | 2 +-
.../Python/mallard-Python-property.tmpl | 2 +-
.../doctemplates/Python/mallard-Python-record.tmpl | 2 +-
.../doctemplates/Python/mallard-Python-signal.tmpl | 2 +-
.../doctemplates/Python/mallard-Python-vfunc.tmpl | 2 +-
giscanner/mallardwriter.py | 15 +++++++++++----
.../DocExamples.Callback.page | 2 +-
.../DocExamples.Obj.method.page | 1 -
.../DocExamples.Obj.new.page | 1 -
.../DocExamples.Obj.static_method.page | 1 -
.../DocExamples.array_function.page | 1 -
.../DocExamples.callback_function.page | 1 -
.../DocExamples.Callback.page | 2 +-
.../DocExamples.Obj.method.page | 1 -
.../DocExamples.Obj.static_method.page | 1 -
.../DocExamples.array_function.page | 1 -
.../DocExamples.callback_function.page | 1 -
35 files changed, 37 insertions(+), 45 deletions(-)
---
diff --git a/Makefile-giscanner.am b/Makefile-giscanner.am
index c43b5bd..9865ece 100644
--- a/Makefile-giscanner.am
+++ b/Makefile-giscanner.am
@@ -55,18 +55,22 @@ pkgpyexec_PYTHON = \
templatedir = $(pkglibdir)
nobase_template_DATA = \
giscanner/doctemplates/C/mallard-C-class.tmpl \
+ giscanner/doctemplates/C/mallard-C-constructor.tmpl \
giscanner/doctemplates/C/mallard-C-default.tmpl \
giscanner/doctemplates/C/mallard-C-enum.tmpl \
giscanner/doctemplates/C/mallard-C-function.tmpl \
+ giscanner/doctemplates/C/mallard-C-method.tmpl \
giscanner/doctemplates/C/mallard-C-namespace.tmpl \
giscanner/doctemplates/C/mallard-C-property.tmpl \
giscanner/doctemplates/C/mallard-C-record.tmpl \
giscanner/doctemplates/C/mallard-C-signal.tmpl \
giscanner/doctemplates/C/mallard-C-vfunc.tmpl \
giscanner/doctemplates/Python/mallard-Python-class.tmpl \
+ giscanner/doctemplates/Python/mallard-Python-constructor.tmpl \
giscanner/doctemplates/Python/mallard-Python-default.tmpl \
giscanner/doctemplates/Python/mallard-Python-enum.tmpl \
giscanner/doctemplates/Python/mallard-Python-function.tmpl \
+ giscanner/doctemplates/Python/mallard-Python-method.tmpl \
giscanner/doctemplates/Python/mallard-Python-namespace.tmpl \
giscanner/doctemplates/Python/mallard-Python-property.tmpl \
giscanner/doctemplates/Python/mallard-Python-record.tmpl \
diff --git a/giscanner/doctemplates/C/mallard-C-class.tmpl b/giscanner/doctemplates/C/mallard-C-class.tmpl
index b0f703f..5081f85 100644
--- a/giscanner/doctemplates/C/mallard-C-class.tmpl
+++ b/giscanner/doctemplates/C/mallard-C-class.tmpl
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<page id="${node.namespace.name}.${node.name}"
type="guide"
- style="class"
+ style="${page_style}"
xmlns="http://projectmallard.org/1.0/"
xmlns:api="http://projectmallard.org/experimental/api/"
xmlns:ui="http://projectmallard.org/experimental/ui/">
diff --git a/giscanner/doctemplates/C/mallard-C-constructor.tmpl b/giscanner/doctemplates/C/mallard-C-constructor.tmpl
new file mode 100644
index 0000000..f373dfb
--- /dev/null
+++ b/giscanner/doctemplates/C/mallard-C-constructor.tmpl
@@ -0,0 +1 @@
+<%inherit file="mallard-C-function.tmpl"/>
diff --git a/giscanner/doctemplates/C/mallard-C-default.tmpl b/giscanner/doctemplates/C/mallard-C-default.tmpl
index 8326343..c6ce176 100644
--- a/giscanner/doctemplates/C/mallard-C-default.tmpl
+++ b/giscanner/doctemplates/C/mallard-C-default.tmpl
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<page id="${namespace.name}.${node.name}"
type="topic"
- style=""
+ style="${page_style}"
xmlns="http://projectmallard.org/1.0/"
xmlns:ui="http://projectmallard.org/experimental/ui/">
<info>
diff --git a/giscanner/doctemplates/C/mallard-C-enum.tmpl b/giscanner/doctemplates/C/mallard-C-enum.tmpl
index b59f27e..393fae4 100644
--- a/giscanner/doctemplates/C/mallard-C-enum.tmpl
+++ b/giscanner/doctemplates/C/mallard-C-enum.tmpl
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<page id="${node.namespace.name}.${node.name}"
type="guide"
- style="enum"
+ style="${page_style}"
xmlns="http://projectmallard.org/1.0/"
xmlns:ui="http://projectmallard.org/experimental/ui/">
<info>
diff --git a/giscanner/doctemplates/C/mallard-C-function.tmpl b/giscanner/doctemplates/C/mallard-C-function.tmpl
index 051fb0b..853a761 100644
--- a/giscanner/doctemplates/C/mallard-C-function.tmpl
+++ b/giscanner/doctemplates/C/mallard-C-function.tmpl
@@ -1,11 +1,4 @@
<?xml version="1.0"?>
-<%
-page_style = 'function'
-if node.is_constructor:
- page_style = 'constructor'
-elif node.is_method:
- page_style = 'method'
-%>
<page id="${page_id}"
type="topic"
style="${page_style}"
diff --git a/giscanner/doctemplates/C/mallard-C-method.tmpl b/giscanner/doctemplates/C/mallard-C-method.tmpl
new file mode 100644
index 0000000..f373dfb
--- /dev/null
+++ b/giscanner/doctemplates/C/mallard-C-method.tmpl
@@ -0,0 +1 @@
+<%inherit file="mallard-C-function.tmpl"/>
diff --git a/giscanner/doctemplates/C/mallard-C-namespace.tmpl b/giscanner/doctemplates/C/mallard-C-namespace.tmpl
index 284ba23..5d39dbc 100644
--- a/giscanner/doctemplates/C/mallard-C-namespace.tmpl
+++ b/giscanner/doctemplates/C/mallard-C-namespace.tmpl
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<page id="index"
type="guide"
- style="namespace"
+ style="${page_style}"
xmlns="http://projectmallard.org/1.0/"
xmlns:ui="http://projectmallard.org/experimental/ui/">
<info>
diff --git a/giscanner/doctemplates/C/mallard-C-property.tmpl b/giscanner/doctemplates/C/mallard-C-property.tmpl
index a471995..68f09ec 100644
--- a/giscanner/doctemplates/C/mallard-C-property.tmpl
+++ b/giscanner/doctemplates/C/mallard-C-property.tmpl
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<page id="${namespace.name}.${node.name}"
type="topic"
- style="property"
+ style="${page_style}"
xmlns="http://projectmallard.org/1.0/"
xmlns:ui="http://projectmallard.org/experimental/ui/">
<info>
diff --git a/giscanner/doctemplates/C/mallard-C-record.tmpl b/giscanner/doctemplates/C/mallard-C-record.tmpl
index 1c7223a..f0c80dc 100644
--- a/giscanner/doctemplates/C/mallard-C-record.tmpl
+++ b/giscanner/doctemplates/C/mallard-C-record.tmpl
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<page id="${node.namespace.name}.${node.name}"
type="guide"
- style="record"
+ style="${page_style}"
xmlns="http://projectmallard.org/1.0/"
xmlns:ui="http://projectmallard.org/experimental/ui/">
<info>
diff --git a/giscanner/doctemplates/C/mallard-C-signal.tmpl b/giscanner/doctemplates/C/mallard-C-signal.tmpl
index 69ecaad..33ed5c2 100644
--- a/giscanner/doctemplates/C/mallard-C-signal.tmpl
+++ b/giscanner/doctemplates/C/mallard-C-signal.tmpl
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<page id="${namespace.name}.${node.name}"
type="topic"
- style="signal"
+ style="${page_style}"
xmlns="http://projectmallard.org/1.0/"
xmlns:ui="http://projectmallard.org/experimental/ui/">
<info>
diff --git a/giscanner/doctemplates/C/mallard-C-vfunc.tmpl b/giscanner/doctemplates/C/mallard-C-vfunc.tmpl
index a35c7b5..3a00d99 100644
--- a/giscanner/doctemplates/C/mallard-C-vfunc.tmpl
+++ b/giscanner/doctemplates/C/mallard-C-vfunc.tmpl
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<page id="${page_id}"
type="topic"
- style="vfunc"
+ style="${page_style}"
xmlns="http://projectmallard.org/1.0/"
xmlns:api="http://projectmallard.org/experimental/api/"
xmlns:ui="http://projectmallard.org/experimental/ui/">
diff --git a/giscanner/doctemplates/Python/mallard-Python-class.tmpl b/giscanner/doctemplates/Python/mallard-Python-class.tmpl
index 6edf25d..6eef692 100644
--- a/giscanner/doctemplates/Python/mallard-Python-class.tmpl
+++ b/giscanner/doctemplates/Python/mallard-Python-class.tmpl
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<page id="${node.namespace.name}.${node.name}"
type="guide"
- style="class"
+ style="${page_style}"
xmlns="http://projectmallard.org/1.0/"
xmlns:api="http://projectmallard.org/experimental/api/"
xmlns:ui="http://projectmallard.org/experimental/ui/">
diff --git a/giscanner/doctemplates/Python/mallard-Python-constructor.tmpl b/giscanner/doctemplates/Python/mallard-Python-constructor.tmpl
new file mode 100644
index 0000000..0b74041
--- /dev/null
+++ b/giscanner/doctemplates/Python/mallard-Python-constructor.tmpl
@@ -0,0 +1 @@
+<%inherit file="mallard-Python-function.tmpl"/>
diff --git a/giscanner/doctemplates/Python/mallard-Python-default.tmpl b/giscanner/doctemplates/Python/mallard-Python-default.tmpl
index 8779105..7bc55d8 100644
--- a/giscanner/doctemplates/Python/mallard-Python-default.tmpl
+++ b/giscanner/doctemplates/Python/mallard-Python-default.tmpl
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<page id="${page_id}"
type="topic"
- style=""
+ style="${page_style}"
xmlns="http://projectmallard.org/1.0/"
xmlns:ui="http://projectmallard.org/experimental/ui/">
<info>
diff --git a/giscanner/doctemplates/Python/mallard-Python-enum.tmpl b/giscanner/doctemplates/Python/mallard-Python-enum.tmpl
index 9e44ede..55ebdf5 100644
--- a/giscanner/doctemplates/Python/mallard-Python-enum.tmpl
+++ b/giscanner/doctemplates/Python/mallard-Python-enum.tmpl
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<page id="${node.namespace.name}.${node.name}"
type="guide"
- style="enum"
+ style="${page_style}"
xmlns="http://projectmallard.org/1.0/"
xmlns:ui="http://projectmallard.org/experimental/ui/">
<info>
diff --git a/giscanner/doctemplates/Python/mallard-Python-function.tmpl b/giscanner/doctemplates/Python/mallard-Python-function.tmpl
index 5ccc800..405f2c3 100644
--- a/giscanner/doctemplates/Python/mallard-Python-function.tmpl
+++ b/giscanner/doctemplates/Python/mallard-Python-function.tmpl
@@ -1,11 +1,4 @@
<?xml version="1.0"?>
-<%
-page_style = 'function'
-if node.is_constructor:
- page_style = 'constructor'
-elif node.is_method:
- page_style = 'method'
-%>
<page id="${page_id}"
type="topic"
style="${page_style}"
diff --git a/giscanner/doctemplates/Python/mallard-Python-method.tmpl b/giscanner/doctemplates/Python/mallard-Python-method.tmpl
new file mode 100644
index 0000000..0b74041
--- /dev/null
+++ b/giscanner/doctemplates/Python/mallard-Python-method.tmpl
@@ -0,0 +1 @@
+<%inherit file="mallard-Python-function.tmpl"/>
diff --git a/giscanner/doctemplates/Python/mallard-Python-namespace.tmpl b/giscanner/doctemplates/Python/mallard-Python-namespace.tmpl
index 935cd44..4ccf452 100644
--- a/giscanner/doctemplates/Python/mallard-Python-namespace.tmpl
+++ b/giscanner/doctemplates/Python/mallard-Python-namespace.tmpl
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<page id="index"
type="guide"
- style="namespace"
+ style="${page_style}"
xmlns="http://projectmallard.org/1.0/"
xmlns:ui="http://projectmallard.org/experimental/ui/">
<info>
diff --git a/giscanner/doctemplates/Python/mallard-Python-property.tmpl b/giscanner/doctemplates/Python/mallard-Python-property.tmpl
index 7ef72cc..47187a7 100644
--- a/giscanner/doctemplates/Python/mallard-Python-property.tmpl
+++ b/giscanner/doctemplates/Python/mallard-Python-property.tmpl
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<page id="${namespace.name}.${node.parent.name}-${node.name}"
type="topic"
- style="property"
+ style="${page_style}"
xmlns="http://projectmallard.org/1.0/"
xmlns:ui="http://projectmallard.org/experimental/ui/">
<info>
diff --git a/giscanner/doctemplates/Python/mallard-Python-record.tmpl b/giscanner/doctemplates/Python/mallard-Python-record.tmpl
index 1b00e3b..f6abd11 100644
--- a/giscanner/doctemplates/Python/mallard-Python-record.tmpl
+++ b/giscanner/doctemplates/Python/mallard-Python-record.tmpl
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<page id="${node.namespace.name}.${node.name}"
type="guide"
- style="record"
+ style="${page_style}"
xmlns="http://projectmallard.org/1.0/"
xmlns:ui="http://projectmallard.org/experimental/ui/">
<info>
diff --git a/giscanner/doctemplates/Python/mallard-Python-signal.tmpl b/giscanner/doctemplates/Python/mallard-Python-signal.tmpl
index f26934f..7bfaf9c 100644
--- a/giscanner/doctemplates/Python/mallard-Python-signal.tmpl
+++ b/giscanner/doctemplates/Python/mallard-Python-signal.tmpl
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<page id="${namespace.name}.${node.parent.name}-${node.name}"
type="topic"
- style="signal"
+ style="${page_style}"
xmlns="http://projectmallard.org/1.0/"
xmlns:ui="http://projectmallard.org/experimental/ui/">
<info>
diff --git a/giscanner/doctemplates/Python/mallard-Python-vfunc.tmpl b/giscanner/doctemplates/Python/mallard-Python-vfunc.tmpl
index 0c93abb..2437e56 100644
--- a/giscanner/doctemplates/Python/mallard-Python-vfunc.tmpl
+++ b/giscanner/doctemplates/Python/mallard-Python-vfunc.tmpl
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<page id="${page_id}"
type="topic"
- style="vfunc"
+ style="${page_style}"
xmlns="http://projectmallard.org/1.0/"
xmlns:api="http://projectmallard.org/experimental/api/"
xmlns:ui="http://projectmallard.org/experimental/ui/">
diff --git a/giscanner/mallardwriter.py b/giscanner/mallardwriter.py
index 8a29f24..5868922 100644
--- a/giscanner/mallardwriter.py
+++ b/giscanner/mallardwriter.py
@@ -56,7 +56,7 @@ def make_page_id(node):
else:
return '%s.%s' % (namespace.name, node.name)
-def make_template_name(node, language):
+def get_node_kind(node):
if isinstance(node, ast.Namespace):
node_kind = 'namespace'
elif isinstance(node, (ast.Class, ast.Interface)):
@@ -64,7 +64,12 @@ def make_template_name(node, language):
elif isinstance(node, ast.Record):
node_kind = 'record'
elif isinstance(node, ast.Function):
- node_kind = 'function'
+ if node.is_method:
+ node_kind = 'method'
+ elif node.is_constructor:
+ node_kind = 'constructor'
+ else:
+ node_kind = 'function'
elif isinstance(node, ast.Enum):
node_kind = 'enum'
elif isinstance(node, ast.Property) and node.parent is not None:
@@ -76,7 +81,7 @@ def make_template_name(node, language):
else:
node_kind = 'default'
- return 'mallard-%s-%s.tmpl' % (language, node_kind)
+ return node_kind
class TemplatedScanner(object):
def __init__(self, specs):
@@ -487,13 +492,15 @@ class MallardWriter(object):
def _render_node(self, node, output):
namespace = self._transformer.namespace
- template_name = make_template_name(node, self._language)
+ node_kind = get_node_kind(node)
+ template_name = 'mallard-%s-%s.tmpl' % (self._language, node_kind)
page_id = make_page_id(node)
template = self._lookup.get_template(template_name)
result = template.render(namespace=namespace,
node=node,
page_id=page_id,
+ page_style=node_kind,
formatter=self._formatter)
output_file_name = os.path.join(os.path.abspath(output),
diff --git a/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Callback.page b/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Callback.page
index 22d30c2..b79b93a 100644
--- a/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Callback.page
+++ b/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Callback.page
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<page id="DocExamples.Callback"
type="topic"
- style=""
+ style="default"
xmlns="http://projectmallard.org/1.0/"
xmlns:ui="http://projectmallard.org/experimental/ui/">
<info>
diff --git a/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj.method.page b/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj.method.page
index 1c52955..2015098 100644
--- a/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj.method.page
+++ b/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj.method.page
@@ -1,5 +1,4 @@
<?xml version="1.0"?>
-
<page id="DocExamples.Obj.method"
type="topic"
style="method"
diff --git a/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj.new.page b/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj.new.page
index c20d8c5..0e010cf 100644
--- a/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj.new.page
+++ b/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj.new.page
@@ -1,5 +1,4 @@
<?xml version="1.0"?>
-
<page id="DocExamples.Obj.new"
type="topic"
style="constructor"
diff --git a/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj.static_method.page b/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj.static_method.page
index f0c917f..ebf23d5 100644
--- a/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj.static_method.page
+++ b/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj.static_method.page
@@ -1,5 +1,4 @@
<?xml version="1.0"?>
-
<page id="DocExamples.Obj.static_method"
type="topic"
style="function"
diff --git a/tests/doctool/DocExamples-1.0-C-expected/DocExamples.array_function.page b/tests/doctool/DocExamples-1.0-C-expected/DocExamples.array_function.page
index a147b6b..2b19e8d 100644
--- a/tests/doctool/DocExamples-1.0-C-expected/DocExamples.array_function.page
+++ b/tests/doctool/DocExamples-1.0-C-expected/DocExamples.array_function.page
@@ -1,5 +1,4 @@
<?xml version="1.0"?>
-
<page id="DocExamples.array_function"
type="topic"
style="function"
diff --git a/tests/doctool/DocExamples-1.0-C-expected/DocExamples.callback_function.page b/tests/doctool/DocExamples-1.0-C-expected/DocExamples.callback_function.page
index 19d10b2..89e00a6 100644
--- a/tests/doctool/DocExamples-1.0-C-expected/DocExamples.callback_function.page
+++ b/tests/doctool/DocExamples-1.0-C-expected/DocExamples.callback_function.page
@@ -1,5 +1,4 @@
<?xml version="1.0"?>
-
<page id="DocExamples.callback_function"
type="topic"
style="function"
diff --git a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Callback.page b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Callback.page
index 22d30c2..b79b93a 100644
--- a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Callback.page
+++ b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Callback.page
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<page id="DocExamples.Callback"
type="topic"
- style=""
+ style="default"
xmlns="http://projectmallard.org/1.0/"
xmlns:ui="http://projectmallard.org/experimental/ui/">
<info>
diff --git a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.method.page b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.method.page
index 3f51bf3..748add8 100644
--- a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.method.page
+++ b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.method.page
@@ -1,5 +1,4 @@
<?xml version="1.0"?>
-
<page id="DocExamples.Obj.method"
type="topic"
style="method"
diff --git a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.static_method.page b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.static_method.page
index 2577eb8..efbdc41 100644
--- a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.static_method.page
+++ b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.static_method.page
@@ -1,5 +1,4 @@
<?xml version="1.0"?>
-
<page id="DocExamples.Obj.static_method"
type="topic"
style="function"
diff --git a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.array_function.page b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.array_function.page
index dd686f8..3c8e86c 100644
--- a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.array_function.page
+++ b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.array_function.page
@@ -1,5 +1,4 @@
<?xml version="1.0"?>
-
<page id="DocExamples.array_function"
type="topic"
style="function"
diff --git a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.callback_function.page b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.callback_function.page
index a834cfb..58323eb 100644
--- a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.callback_function.page
+++ b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.callback_function.page
@@ -1,5 +1,4 @@
<?xml version="1.0"?>
-
<page id="DocExamples.callback_function"
type="topic"
style="function"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]