From 33faac17761ce0830e2fb0df331ed03d0b688d9a Mon Sep 17 00:00:00 2001 From: Stuart Teasdale Date: Tue, 16 Oct 2018 15:54:11 +0100 Subject: [PATCH] Make option regex more robust for different help formatting --- scripts/help_to_latex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.*)$')),