diff --git a/scripts/help_to_latex.py b/scripts/help_to_latex.py index a8aa8603..cb505510 100644 --- a/scripts/help_to_latex.py +++ b/scripts/help_to_latex.py @@ -64,7 +64,7 @@ def tokenise_boost_cpp_help(message): ('empty', re.compile('^$')), ('section', re.compile('^(?P.*):$')), ('option', re.compile( - '^ (?P\S+) (?P\S+( \S+)*)(?: *(?P.*))?$')), + '^ (?P\S+) (?P( ?arg| ?\[.*?\]| ?\(.*?\))*)(?: +(?P.*))?$')), # intented text will be at least 3 spaces, exact number is # data-dependent ('indented', re.compile('^ {3,}(?P.*)$')),