mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #2366: empty hyperref is generated on toctree in HTML builder
This commit is contained in:
1
CHANGES
1
CHANGES
@@ -8,6 +8,7 @@ Bugs fixed
|
||||
* #2358: Redece tocdepth if ``part`` or ``chapter`` is used for top_sectionlevel.
|
||||
* #2351: Fix footnote spacing
|
||||
* #2363: Fix ``toctree()`` in templates generates broken links in SingleHTMLBuilder.
|
||||
* #2366: Fix empty hyperref is generated on toctree in HTML builder.
|
||||
|
||||
|
||||
Release 1.3.6 (released Feb 29, 2016)
|
||||
|
||||
@@ -203,7 +203,7 @@ class HTMLTranslator(BaseTranslator):
|
||||
else:
|
||||
atts['class'] += ' external'
|
||||
if 'refuri' in node:
|
||||
atts['href'] = node['refuri']
|
||||
atts['href'] = node['refuri'] or '#'
|
||||
if self.settings.cloak_email_addresses and \
|
||||
atts['href'].startswith('mailto:'):
|
||||
atts['href'] = self.cloak_mailto(atts['href'])
|
||||
|
||||
Reference in New Issue
Block a user