From: Vladimír Vondruš Date: Mon, 11 Sep 2017 17:01:42 +0000 (+0200) Subject: m.htmlsanity: don't print a warning if smart quote lang isn't available. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=ebb7ae154cca562f30eee405265ac199691036ef;p=blog.git m.htmlsanity: don't print a warning if smart quote lang isn't available. Because that makes Pelican stop. --- diff --git a/pelican-plugins/m/htmlsanity.py b/pelican-plugins/m/htmlsanity.py index 3f835491..21aa04ae 100644 --- a/pelican-plugins/m/htmlsanity.py +++ b/pelican-plugins/m/htmlsanity.py @@ -85,10 +85,6 @@ class SmartQuotes(docutils.transforms.universal.SmartQuotes): lang = tag break else: # language not supported: (keep ASCII quotes) - if lang not in self.unsupported_languages: - self.document.reporter.warning('No smart quotes ' - 'defined for language "%s".'%lang, base_node=node) - self.unsupported_languages.add(lang) lang = '' # Iterator educating quotes in plain text: