Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
-
28570c59
by Zubin Duggal at 2025-09-10T10:50:37-04:00
1 changed file:
Changes:
... | ... | @@ -236,8 +236,10 @@ class Flag(GenericFlag): |
236 | 236 | reverse = self.options.get('reverse')
|
237 | 237 | if reverse is not None and reverse != '':
|
238 | 238 | # Make this also addressable via the reverse flag
|
239 | + # Strip leading hyphen to avoid double hyphen in anchor ID
|
|
240 | + clean_name = name[1:] if name.startswith('-') else name
|
|
239 | 241 | self.env.domaindata['std']['objects']['ghc-flag', reverse] = \
|
240 | - self.env.docname, 'ghc-flag-%s' % name
|
|
242 | + self.env.docname, 'ghc-flag-%s' % clean_name
|
|
241 | 243 | |
242 | 244 | # This class inherits from Sphinx's internal GenericObject, which drives
|
243 | 245 | # the add_object_type() utility function. We want to keep that tooling,
|