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 49b7773 commit 1dbb782Copy full SHA for 1dbb782
1 file changed
pdoc/html_helpers.py
@@ -566,6 +566,7 @@ def format_git_link(template: str, dobj: pdoc.Doc):
566
path = path.replace('\\', '/')
567
568
lines, start_line = inspect.getsourcelines(dobj.obj)
569
+ start_line = start_line or 1 # GH-296
570
end_line = start_line + len(lines) - 1
571
url = template.format(**locals())
572
return url
0 commit comments