chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8b2003
)
m.htmlsanity: don't print a warning if smart quote lang isn't available.
author
Vladimír Vondruš
<mosra@centrum.cz>
Mon, 11 Sep 2017 17:01:42 +0000
(19:01 +0200)
committer
Vladimír Vondruš
<mosra@centrum.cz>
Thu, 14 Sep 2017 22:11:11 +0000
(
00:11
+0200)
Because that makes Pelican stop.
pelican-plugins/m/htmlsanity.py
patch
|
blob
|
history
diff --git
a/pelican-plugins/m/htmlsanity.py
b/pelican-plugins/m/htmlsanity.py
index 3f835491ea1b06f18bf6be32ec57d96bbae1529d..21aa04aefe8d9ad6485fcd511ff2c1d6e467811d 100644
(file)
--- 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: