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.

  • Participants
  • Parent commits 4051be7
  • Branches httpdomain/55-import-changes-from-couchdb

Comments (0)

Files changed (1)

File 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