Commits

Alexander Shorin committed 271f7f1

Remove {} chars from API reference links

While browsers shows them correctly JIRA, StackOverflow and others
in-form URL parsers aren't likes them and breaks the referencing.

Comments (0)

Files changed (1)

httpdomain/sphinxcontrib/httpdomain.py

 
 
 def http_resource_anchor(method, path):
-    path = re.sub(r'[<>:/]', '-', path)
+    path = re.sub(r'[{}]', '', re.sub(r'[<>:/]', '-', path))
     return method.lower() + '-' + path