[gtk-doc] db2html: convert content of chapter nodes
- From: Stefan Sauer <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] db2html: convert content of chapter nodes
- Date: Thu, 22 Feb 2018 20:12:16 +0000 (UTC)
commit 91c85c21f37eda8dce388a7ae25978b40109287c
Author: Stefan Sauer <ensonic users sf net>
Date: Thu Feb 22 09:40:15 2018 +0100
db2html: convert content of chapter nodes
We don't have tag-converters for chunks (since those have a top-level
converter). Hence we will end up in the converter that reports missing
tag converters. Check here if the tag is a chunk tag and return.
tools/db2html.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/tools/db2html.py b/tools/db2html.py
index db2d1ba..de158a9 100644
--- a/tools/db2html.py
+++ b/tools/db2html.py
@@ -226,6 +226,9 @@ missing_tags = {}
def convert__unknown(ctx, xml):
+ # don't recurse on subchunks
+ if xml.tag in CHUNK_TAGS:
+ return []
# warn only once
if xml.tag not in missing_tags:
logging.warning('Add tag converter for "%s"', xml.tag)
@@ -713,7 +716,7 @@ def convert_chapter(ctx):
# TODO(ensonic): generate the 'id'
result.append('<div class="titlepage"><h1 class="title"><a name="id-1.2"></a>%s</h1></div>' %
title.text)
node.xml.remove(title)
- # TODO(ensonic): convert the remaining children?
+ convert_inner(ctx, node.xml, result)
result.append("""<div class="toc">
<dl class="toc">
""")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]