diff --git a/Tools/px4moduledoc/srcparser.py b/Tools/px4moduledoc/srcparser.py index 3eacbf432548..4937f67b7ebf 100644 --- a/Tools/px4moduledoc/srcparser.py +++ b/Tools/px4moduledoc/srcparser.py @@ -442,7 +442,7 @@ def _do_consistency_check(self, contents, scope, module_doc): re.findall(r"\bstrcmp\b.*\bverb\b.*\"(.+)\"", contents) doc_commands = module_doc.all_commands() + \ - [x for value in module_doc.all_values() for x in value.split('|')] + [x for value in module_doc.all_values() for x in value.replace(' ', '|').split('|')] for command in commands: if len(command) == 2 and command[0] == '-':