[gtk-doc] mkhtml2: downgrade 'no id' warnings



commit 9544b0490b6fae8eff168e97ed06b88e17541923
Author: Stefan Sauer <ensonic users sf net>
Date:   Fri Mar 30 12:13:30 2018 +0200

    mkhtml2: downgrade 'no id' warnings
    
    This is not a mistake, one can simple avoid the runtime penalty of generating
    one by adding one here.

 gtkdoc/mkhtml2.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtkdoc/mkhtml2.py b/gtkdoc/mkhtml2.py
index 2e82a22..4f88339 100644
--- a/gtkdoc/mkhtml2.py
+++ b/gtkdoc/mkhtml2.py
@@ -42,6 +42,8 @@ TODO:
     attr on the <img> tag of the 'imageobject'
 - check each docbook tag if it can contain #PCDATA, if not don't check for
   xml.text
+- consider some perf-warnings flag
+  - see 'No "id" attribute on'
 
 OPTIONAL:
 - minify html: https://pypi.python.org/pypi/htmlmin/
@@ -892,7 +894,8 @@ def get_id(node):
     if node_id:
         return node_id
 
-    logging.warning('%d: No "id" attribute on "%s"', xml.sourceline, xml.tag)
+    logging.info('%d: No "id" attribute on "%s", generating one',
+                 xml.sourceline, xml.tag)
     ix = []
     # Generate the 'id'. We need to walk up the xml-tree and check the positions
     # for each sibling.


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