[gtk-doc] mkhtml2: stop extra spans from refentry nav headers



commit 180940bf0f380c913da9a53660449d8be0fa8df1
Author: Stefan Sauer <ensonic users sf net>
Date:   Sat Mar 31 18:28:28 2018 +0200

    mkhtml2: stop extra spans from refentry nav headers
    
    The had the same hard-coded id which is invalid and the id was not used anyway.

 gtkdoc/mkhtml2.py |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/gtkdoc/mkhtml2.py b/gtkdoc/mkhtml2.py
index 06f0a35..49179a7 100644
--- a/gtkdoc/mkhtml2.py
+++ b/gtkdoc/mkhtml2.py
@@ -949,9 +949,9 @@ def generate_alpha_nav(ctx, divs, prefix):
 
 
 def generate_refentry_nav(ctx, refsect1s, result):
-    result.append("""<table class="navigation" id="top" width="100%%" cellpadding="2" cellspacing="5">
+    result.append("""<table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="5">
   <tr valign="middle">
-    <td width="100%%" align="left" class="shortcuts">
+    <td width="100%" align="left" class="shortcuts">
       <a href="#" class="shortcut">Top</a>""")
 
     for s in refsect1s:
@@ -964,10 +964,9 @@ def generate_refentry_nav(ctx, refsect1s, result):
 
         title = xml_get_title(s)
         result.append("""
-          <span id="nav_description">
-            <span class="dim">|</span> 
-            <a href="#%s" class="shortcut">%s</a>
-          </span>""" % (s.attrib['id'], title))
+          <span class="dim">|</span> 
+          <a href="#%s" class="shortcut">%s</a>
+          """ % (s.attrib['id'], title))
     result.append("""
     </td>
     %s


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