From 2275721b066f4f76d83db3b36627f07c8fc75979 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 8 Sep 2017 11:34:48 +0200 Subject: [PATCH] m.htmlsanity: produce ­ instead of U+00AD in the hyphenate filter. Makes the result easier to spot in the resulting HTML code. --- pelican-plugins/m/htmlsanity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican-plugins/m/htmlsanity.py b/pelican-plugins/m/htmlsanity.py index 95e7eb2a..69605c63 100644 --- a/pelican-plugins/m/htmlsanity.py +++ b/pelican-plugins/m/htmlsanity.py @@ -469,7 +469,7 @@ def hyphenate(value, enable=None, lang=None): if lang is None: lang = hyphenation_lang if not enable: return value pyphen_ = pyphen.Pyphen(lang=lang) - return words_re.sub(lambda m: pyphen_.inserted(m.group(0), '\u00AD'), str(value)) + return words_re.sub(lambda m: pyphen_.inserted(m.group(0), '­'), str(value)) def configure_pelican(pelicanobj): pelicanobj.settings['JINJA_FILTERS']['render_rst'] = render_rst -- 2.30.2