From 609eb5d952a0d96791e82a32ff26edef492ec8df Mon Sep 17 00:00:00 2001 From: Leon Sandøy Date: Fri, 27 Apr 2018 09:41:21 +0200 Subject: Declaring the encoding to be utf-8 is not necessary in Python3 projects, as this is the default encoding. Encoding declarations are only useful in py3 if you want to declare it to be something _other_ than utf-8. This was, however, a very useful convention in py2. (#56) --- pysite/rst/roles.py | 1 - 1 file changed, 1 deletion(-) (limited to 'pysite/rst/roles.py') diff --git a/pysite/rst/roles.py b/pysite/rst/roles.py index acba31e4..00d12dba 100644 --- a/pysite/rst/roles.py +++ b/pysite/rst/roles.py @@ -1,4 +1,3 @@ -# coding=utf-8 from docutils import nodes from docutils.parsers.rst.roles import set_classes from docutils.parsers.rst.states import Inliner -- cgit v1.2.3 From ba68c031aa3a8dc1c0eae9952ab23a6bc1d8eb4a Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Mon, 30 Apr 2018 11:18:22 +0100 Subject: [Wiki] Icons should all be the same width --- pysite/rst/roles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pysite/rst/roles.py') diff --git a/pysite/rst/roles.py b/pysite/rst/roles.py index 00d12dba..abade243 100644 --- a/pysite/rst/roles.py +++ b/pysite/rst/roles.py @@ -40,7 +40,7 @@ def icon_role(_role: str, rawtext: str, text: str, lineno: int, inliner: Inliner return [prb], [msg] - html = f"""""" + html = f"""""" node = nodes.raw(html, html, format="html", **options) return [node], [] -- cgit v1.2.3