Commits

Georg Brandl  committed cf41b9f

Fix #768: whitespace-strip JS function names.

  • Participants
  • Parent commits 424a09d

Comments (0)

Files changed (1)

File sphinx/domains/javascript.py

         sig = sig.strip()
         if '(' in sig and sig[-1:] == ')':
             prefix, arglist = sig.split('(', 1)
+            prefix = prefix.strip()
             arglist = arglist[:-1].strip()
         else:
             prefix = sig