[gtk-doc] mkhtml2: add tag converter for literallayout
- From: Stefan Sauer <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] mkhtml2: add tag converter for literallayout
- Date: Sun, 1 Apr 2018 10:31:08 +0000 (UTC)
commit 795a48cf62981cc91f4da833fbc62edfc2f0f79b
Author: Stefan Sauer <ensonic users sf net>
Date: Sun Apr 1 12:30:37 2018 +0200
mkhtml2: add tag converter for literallayout
gtkdoc/mkhtml2.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gtkdoc/mkhtml2.py b/gtkdoc/mkhtml2.py
index ead4c23..58205a9 100644
--- a/gtkdoc/mkhtml2.py
+++ b/gtkdoc/mkhtml2.py
@@ -585,6 +585,15 @@ def convert_listitem(ctx, xml):
return result
+def convert_literallayout(ctx, xml):
+ result = ['<div class="literallayout"><p><br>\n']
+ append_text(xml.text, result)
+ convert_inner(ctx, xml, result)
+ result.append('</p></div>')
+ append_text(xml.tail, result)
+ return result
+
+
def convert_orderedlist(ctx, xml):
result = ['<div class="orderedlistlist"><ol class="orderedlistlist" type="1">']
convert_inner(ctx, xml, result)
@@ -851,6 +860,7 @@ convert_tags = {
'link': convert_link,
'listitem': convert_listitem,
'literal': convert_code,
+ 'literallayout': convert_literallayout,
'mediaobject': convert_div,
'note': convert_div,
'option': convert_code,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]