{"action":"created","issue":{"url":"https://api.github.com/repos/sphinx-doc/testing2/issues/768","labels_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/768/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/768/comments","events_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/768/events","html_url":"https://github.com/sphinx-doc/testing2/issues/768","id":53285736,"number":768,"title":"JavaScript domain does not strip whitespaces from function names","user":{"login":"shimizukawa","id":151623,"avatar_url":"https://avatars.githubusercontent.com/u/151623?v=3","gravatar_id":"","url":"https://api.github.com/users/shimizukawa","html_url":"https://github.com/shimizukawa","followers_url":"https://api.github.com/users/shimizukawa/followers","following_url":"https://api.github.com/users/shimizukawa/following{/other_user}","gists_url":"https://api.github.com/users/shimizukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shimizukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimizukawa/subscriptions","organizations_url":"https://api.github.com/users/shimizukawa/orgs","repos_url":"https://api.github.com/users/shimizukawa/repos","events_url":"https://api.github.com/users/shimizukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shimizukawa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sphinx-doc/testing2/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/sphinx-doc/testing2/labels/domains%3Ajs","name":"domains:js","color":"FFFFFF"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-02T23:31:30Z","updated_at":"2015-01-02T23:31:33Z","closed_at":"2015-01-02T23:31:31Z","body":"in sphinx 1.0.7, if you have a definition like this:\n\n.. js:function:: hello ( world )\n\nsphinx keeps the whitespaces as function name ('hello '), breaking links.\n\nI have fixed this problem modifying the domains/javascript.py file\nin this way:\n\n(8 white spaces) # FIX: remove trailing spaces in function name\n\n(8 whitespaces)  prefix = prefix.strip ()\n\nand now it works correctly.\n\nHope it helps :-)\n\nCiao,\nFabio Rotondo\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/birkenfeld/sphinx/issue/768\n- Originally reported by: [os3it](https://bitbucket.org/os3it)\n- Originally created at: 2011-09-21T15:09:45.074\n"},"comment":{"url":"https://api.github.com/repos/sphinx-doc/testing2/issues/comments/68572952","html_url":"https://github.com/sphinx-doc/testing2/issues/768#issuecomment-68572952","issue_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/768","id":68572952,"user":{"login":"shimizukawa","id":151623,"avatar_url":"https://avatars.githubusercontent.com/u/151623?v=3","gravatar_id":"","url":"https://api.github.com/users/shimizukawa","html_url":"https://github.com/shimizukawa","followers_url":"https://api.github.com/users/shimizukawa/followers","following_url":"https://api.github.com/users/shimizukawa/following{/other_user}","gists_url":"https://api.github.com/users/shimizukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shimizukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimizukawa/subscriptions","organizations_url":"https://api.github.com/users/shimizukawa/orgs","repos_url":"https://api.github.com/users/shimizukawa/repos","events_url":"https://api.github.com/users/shimizukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shimizukawa/received_events","type":"User","site_admin":false},"created_at":"2015-01-02T23:31:32Z","updated_at":"2015-01-02T23:31:32Z","body":"_From Georg Brandl on 2011-09-21 16:02:09+00:00_\n\nFix #768: whitespace-strip JS function names.\n\n→ \\<\\<cset cb54b7db4e6ec346a51b9a77dacf6378c0b961a3\\>\\>"}}