Commits

Sebastian Wiesner  committed c9ffc9d

Fixed whitespace normalization for generic targets

  • Participants
  • Parent commits 1e36da8

Comments (0)

Files changed (1)

File sphinx/domains/std.py

     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)