]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - tools/make-directive-index.py
man: change noindex="true" to index="false"
[thirdparty/systemd.git] / tools / make-directive-index.py
index 9d9448703fb70bae0b70b31d9c8504235e74e39b..2bc178de50765e2abfe843439cbb0cda88c8e8b9 100755 (executable)
@@ -204,7 +204,7 @@ def _extract_directives(directive_groups, formatting, page):
         for name in t.iterfind(xpath):
             if absolute_only and not (name.text and name.text.startswith('/')):
                 continue
-            if name.attrib.get('noindex'):
+            if name.attrib.get('index') == 'false':
                 continue
             name.tail = ''
             if name.text:
@@ -228,7 +228,7 @@ def _extract_directives(directive_groups, formatting, page):
 
     storfile = directive_groups['constants']
     for name in t.iterfind('.//constant'):
-        if name.attrib.get('noindex'):
+        if name.attrib.get('index') == 'false':
             continue
         name.tail = ''
         if name.text.startswith('('): # a cast, strip it