summaryrefslogtreecommitdiff
path: root/sphinx/writers/html5.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-12-22 18:47:30 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-12-22 18:47:30 +0900
commit5640cf879f91c8ca5e71b68ab5a5fd24b536703a (patch)
tree6fc2107d8adc1ade4f9a8ca260db4e156fdde609 /sphinx/writers/html5.py
parente83bb29789a093c651a255a509430a03346a5afb (diff)
parent43c089fd28dfdc33cc67b364724db51d3f5c1804 (diff)
downloadsphinx-git-5640cf879f91c8ca5e71b68ab5a5fd24b536703a.tar.gz
Merge branch '2.0'
Diffstat (limited to 'sphinx/writers/html5.py')
-rw-r--r--sphinx/writers/html5.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/writers/html5.py b/sphinx/writers/html5.py
index 438f161f7..e6bf0c9b2 100644
--- a/sphinx/writers/html5.py
+++ b/sphinx/writers/html5.py
@@ -61,7 +61,7 @@ class HTML5Translator(SphinxTranslator, BaseTranslator):
self.permalink_text = self.config.html_add_permalinks
# support backwards-compatible setting to a bool
if not isinstance(self.permalink_text, str):
- self.permalink_text = self.permalink_text and '¶' or ''
+ self.permalink_text = '¶' if self.permalink_text else ''
self.permalink_text = self.encode(self.permalink_text)
self.secnumber_suffix = self.config.html_secnumber_suffix
self.param_separator = ''