chiark / gitweb /
doxygen: don't mark things containing \bug as deprecated.
authorVladimír Vondruš <mosra@centrum.cz>
Sun, 11 Feb 2018 23:05:04 +0000 (00:05 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Sun, 11 Feb 2018 23:05:04 +0000 (00:05 +0100)
Ugh am I stupid?!

doxygen/dox2html5.py

index 8de8f1798284692c53cda161be94051ffc4d8eea..b341de7246edc0396f833fa8ca5c2128b7dfdf1d 100755 (executable)
@@ -881,9 +881,11 @@ def parse_desc_internal(state: State, element: ET.Element, immediate_parent: ET.
             id = i.attrib['id']
             match = xref_id_rx.match(id)
             file = match.group(1)
-            if file.startswith(('deprecated', 'bug')):
+            if file.startswith('deprecated'):
                 color = 'm-danger'
                 out.is_deprecated = True
+            elif file.startswith('bug'):
+                color = 'm-danger'
             elif file.startswith('todo'):
                 color = 'm-dim'
             else: