[gtk-doc] mkhtml2: add separate tag converter for 'emphasis'
- From: Stefan Sauer <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] mkhtml2: add separate tag converter for 'emphasis'
- Date: Wed, 11 Apr 2018 20:10:48 +0000 (UTC)
commit 752c6f591254c310c392e00765be7c1d88ff9428
Author: Stefan Sauer <ensonic users sf net>
Date: Wed Apr 11 22:09:52 2018 +0200
mkhtml2: add separate tag converter for 'emphasis'
It uses span+em tags.
gtkdoc/mkhtml2.py | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/gtkdoc/mkhtml2.py b/gtkdoc/mkhtml2.py
index d826205..5c5165e 100644
--- a/gtkdoc/mkhtml2.py
+++ b/gtkdoc/mkhtml2.py
@@ -429,6 +429,15 @@ def convert_div(ctx, xml):
return result
+def convert_emphasis(ctx, xml):
+ result = ['<span class="emphasis"><em>']
+ append_text(xml.text, result)
+ convert_inner(ctx, xml, result)
+ result.append('</em></span>')
+ append_text(xml.tail, result)
+ return result
+
+
def convert_em_class(ctx, xml):
result = ['<em class="%s"><code>' % xml.tag]
append_text(xml.text, result)
@@ -911,7 +920,7 @@ convert_tags = {
'constant': convert_code,
'command': convert_command,
'corpauthor': convert_corpauthor,
- 'emphasis': convert_span,
+ 'emphasis': convert_emphasis,
'entry': convert_entry,
'envar': convert_code,
'footnote': convert_footnote,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]