Issue #768 resolved

JavaScript domain does not strip whitespaces from function names

created an issue

in sphinx 1.0.7, if you have a definition like this:

.. js:function:: hello ( world )

sphinx keeps the whitespaces as function name ('hello '), breaking links.

I have fixed this problem modifying the domains/ file in this way:

(8 white spaces) # FIX: remove trailing spaces in function name

(8 whitespaces) prefix = prefix.strip ()

and now it works correctly.

Hope it helps :-)

Ciao, Fabio Rotondo

Comments (4)

  1. Log in to comment