[gtk-doc] mkhtml2: move local anchors into para



commit 830ee15a77c76df46a3b1752f7c10bda07bd999c
Author: Stefan Sauer <ensonic users sf net>
Date:   Tue May 1 15:05:02 2018 +0200

    mkhtml2: move local anchors into para

 gtkdoc/mkhtml2.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtkdoc/mkhtml2.py b/gtkdoc/mkhtml2.py
index 6b4bab3..3a2a99d 100644
--- a/gtkdoc/mkhtml2.py
+++ b/gtkdoc/mkhtml2.py
@@ -695,12 +695,12 @@ def convert_orderedlist(ctx, xml):
 
 def convert_para(ctx, xml):
     result = []
-    if 'id' in xml.attrib:
-        result.append('<a name="%s"></a>' % xml.attrib['id'])
     if 'role' in xml.attrib:
         result.append('<p class="%s">' % xml.attrib['role'])
     else:
         result.append('<p>')
+    if 'id' in xml.attrib:
+        result.append('<a name="%s"></a>' % xml.attrib['id'])
     append_text(xml.text, result)
     convert_inner(ctx, xml, result)
     result.append('</p>')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]