Skip to content

Commit

Permalink
Tools: split by | or space to get all commands
Browse files Browse the repository at this point in the history
This is required in the case where there are 3 commands on one line.
  • Loading branch information
julianoes authored and bkueng committed Oct 30, 2024
1 parent 6509e70 commit 951c981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/px4moduledoc/srcparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] == '-':
Expand Down

0 comments on commit 951c981

Please sign in to comment.