mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fixed whitespace normalization for generic targets
This commit is contained in:
parent
cee5b63fb0
commit
90b2b59fca
@ -103,7 +103,7 @@ class Target(Directive):
|
||||
def run(self):
|
||||
env = self.state.document.settings.env
|
||||
# normalize whitespace in fullname like XRefRole does
|
||||
fullname = ws_re.sub('', self.arguments[0].strip())
|
||||
fullname = ws_re.sub(' ', self.arguments[0].strip())
|
||||
targetname = '%s-%s' % (self.name, fullname)
|
||||
node = nodes.target('', '', ids=[targetname])
|
||||
self.state.document.note_explicit_target(node)
|
||||
|
Loading…
Reference in New Issue
Block a user