Made wmllint ignore UTF-8 minus signs when spellchecking.

This commit is contained in:
Steven Panek 2011-04-19 00:08:54 +00:00
parent 2d5fbdf1b6
commit 464b1a5764

View file

@ -1944,6 +1944,7 @@ def inner_spellcheck(nav, value, spelldict):
value = value.replace("\xe2\x80\x94", " ") # UTF-8 em dash
value = value.replace("\xe2\x80\x93", " ") # UTF-8 en dash
value = value.replace("\xe2\x80\x95", " ") # UTF-8 horizontal dash
value = value.replace("\xe2\x88\x92", " ") # UTF-8 minus sign
value = value.replace("\xe2\x80\x99", "'") # UTF-8 right single quote
value = value.replace("\xe2\x80\x98", "'") # UTF-8 left single quote
value = value.replace("\xe2\x80\x9d", " ") # UTF-8 right double quote