From 1f6ce4cd449a96620bf202e32d39b9a089ed70cf Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Thu, 20 Dec 2018 18:08:35 -0800 Subject: [PATCH] =?UTF-8?q?Replace=20escape=20sequence=20'\u00B6'=20with?= =?UTF-8?q?=20literal=20'=C2=B6'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit More obvious to the reader. --- sphinx/builders/html.py | 2 +- sphinx/writers/html.py | 2 +- sphinx/writers/html5.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sphinx/builders/html.py b/sphinx/builders/html.py index 075fec8e3..a5d8fd306 100644 --- a/sphinx/builders/html.py +++ b/sphinx/builders/html.py @@ -1633,7 +1633,7 @@ def setup(app): app.add_config_value('html_sidebars', {}, 'html') app.add_config_value('html_additional_pages', {}, 'html') app.add_config_value('html_domain_indices', True, 'html', [list]) - app.add_config_value('html_add_permalinks', '\u00B6', 'html') + app.add_config_value('html_add_permalinks', '¶', 'html') app.add_config_value('html_use_index', True, 'html') app.add_config_value('html_split_index', False, 'html') app.add_config_value('html_copy_source', True, 'html') diff --git a/sphinx/writers/html.py b/sphinx/writers/html.py index f7366767f..014c0272c 100644 --- a/sphinx/writers/html.py +++ b/sphinx/writers/html.py @@ -92,7 +92,7 @@ class HTMLTranslator(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 '\u00B6' or '' + self.permalink_text = self.permalink_text and '¶' or '' self.permalink_text = self.encode(self.permalink_text) self.secnumber_suffix = self.config.html_secnumber_suffix self.param_separator = '' diff --git a/sphinx/writers/html5.py b/sphinx/writers/html5.py index 2a8380d73..88e95ceff 100644 --- a/sphinx/writers/html5.py +++ b/sphinx/writers/html5.py @@ -62,7 +62,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 '\u00B6' or '' + self.permalink_text = self.permalink_text and '¶' or '' self.permalink_text = self.encode(self.permalink_text) self.secnumber_suffix = self.config.html_secnumber_suffix self.param_separator = ''