diff --git a/man/build_md.py b/man/build_md.py index 7f6a8e8ba4a..566139f6118 100644 --- a/man/build_md.py +++ b/man/build_md.py @@ -383,7 +383,7 @@ def md_files(cls=None, ignore_gui=True): and (cls != "*" or len(cmd.split(".")) >= 3) and cmd not in ["full_index.md", "index.md"] and cmd not in exclude_mods - and (ignore_gui and not cmd.startswith("wxGUI.") or not ignore_gui) + and ((ignore_gui and not cmd.startswith("wxGUI.")) or not ignore_gui) ): yield cmd