aboutsummaryrefslogtreecommitdiffstats
path: root/manual/_ext
diff options
context:
space:
mode:
Diffstat (limited to 'manual/_ext')
-rw-r--r--manual/_ext/qpdf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/manual/_ext/qpdf.py b/manual/_ext/qpdf.py
index 032aa86c..bb13b8b5 100644
--- a/manual/_ext/qpdf.py
+++ b/manual/_ext/qpdf.py
@@ -21,7 +21,7 @@ class OptionDirective(ObjectDescription):
return sig
def add_target_and_index(self, name_cls, sig, signode):
- m = re.match(r'^--([^= ]+)', sig)
+ m = re.match(r'^--([^\[= ]+)', sig)
if not m:
raise Exception('option must start with --')
option_name = m.group(1)
@@ -42,7 +42,7 @@ class OptionIndex(Index):
# name, subtype, docname, anchor, extra, qualifier, description
for name, display_name, typ, docname, anchor, _ in options:
- m = re.match(r'^(--([^= ]+))', display_name)
+ m = re.match(r'^(--([^\[= ]+))', display_name)
if not m:
raise Exception(
'OptionIndex.generate: display name not as expected')