mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
issue #2357
This commit is contained in:
parent
95583428f5
commit
d5a2073a07
@ -442,7 +442,7 @@ class HTMLTranslator(BaseTranslator):
|
||||
def visit_download_reference(self, node):
|
||||
if node.hasattr('filename'):
|
||||
self.body.append(
|
||||
'<a class="reference download internal" href="%s">' %
|
||||
'<a class="reference download internal" href="%s" download="">' %
|
||||
posixpath.join(self.builder.dlpath, node['filename']))
|
||||
self.context.append('</a>')
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user