Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f48ad73 commit 755740eCopy full SHA for 755740e
doc/sphinxext/missing_references.py
@@ -97,7 +97,10 @@ def get_location(node, app):
97
(path, line) = get_source_line(node)
98
99
if path:
100
-
+ # sometimes the 'path' can contain ':' which are forbidden on
101
+ # windows, but on posix just passes through.
102
+ path, *post = path.partition(':')
103
+ post = ''.join(post)
104
# We locate references relative to the parent of the doc
105
# directory, which for matplotlib, will be the root of the
106
# matplotlib repo. When matplotlib is not an editable install
@@ -122,11 +125,11 @@ def get_location(node, app):
122
125
123
126
else:
124
127
path = "<unknown>"
128
+ post = ''
129
if not line:
130
line = ""
131
- return f"{path}:{line}"
132
+ return f"{path}{post}:{line}"
133
134
135
def _truncate_location(location):
0 commit comments