From b94a433ca34d74cfefd2e41042bc001b3f8d20bc Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 18 Jun 2017 02:33:13 +1000 Subject: Docs: Fix file:line links in generated API docs --- doc/python_api/sphinx_doc_gen.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py index c8bf0243d2c..3b0e8f52c83 100644 --- a/doc/python_api/sphinx_doc_gen.py +++ b/doc/python_api/sphinx_doc_gen.py @@ -1613,10 +1613,8 @@ def pyrna2sphinx(basepath): else: url_base = API_BASEURL - fw(" :file: `%s <%s/%s>`_:%d\n\n" % (location[0], - url_base, - location[0], - location[1])) + fw(" :file: `%s\\:%d <%s/%s$%d>`_\n\n" % + (location[0], location[1], url_base, location[0], location[1])) file.close() -- cgit v1.2.3