From 73d665f4396f87870c85ba5e40dd19b861c14cdf Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Sun, 13 May 2018 14:38:38 +0200 Subject: [PATCH] mkhtml2: add tag converter for 'tag' --- gtkdoc/mkhtml2.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gtkdoc/mkhtml2.py b/gtkdoc/mkhtml2.py index e9b1590..d9b7bb8 100644 --- a/gtkdoc/mkhtml2.py +++ b/gtkdoc/mkhtml2.py @@ -979,6 +979,19 @@ def convert_table(ctx, xml): return result +def convert_tag(ctx, xml): + attrs = '' + try: + attrs = ' class="sgmltag-%s"' % xml.attrib['class'] + except KeyError: + pass + result = ['' % attrs] + append_text(ctx, xml.text, result) + result.append('') + append_text(ctx, xml.tail, result) + return result + + def convert_tbody(ctx, xml): result = [''] ctx['table.entry'] = 'td' @@ -1171,6 +1184,7 @@ convert_tags = { 'synopsis': convert_pre, 'symbol': convert_span, 'table': convert_table, + 'tag': convert_tag, 'tbody': convert_tbody, 'term': convert_span, 'tgroup': convert_tgroup, -- 2.11.4.GIT