diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-09-20 13:00:19 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-09-20 13:03:57 +0200 |
commit | ddfcbced76e5e2d731bcd588df069e150582625d (patch) | |
tree | 6cf56f3dc75aad8e822bb245906e5edd40cb9983 /crawl-ref/source/util/checkwhite | |
parent | 4e6549d5210ed8beeb8d53e3ab69d07af5322ccd (diff) | |
download | crawl-ref-ddfcbced76e5e2d731bcd588df069e150582625d.tar.gz crawl-ref-ddfcbced76e5e2d731bcd588df069e150582625d.zip |
Remove zero-width spaces from French descriptions.
Some editor must have added them, and they can cause problems in tiles
(no combining/zero-width character support yet). Plus, they're utterly
pointless after a real space.
As they're whitespace, I added them to checkwhite.
Diffstat (limited to 'crawl-ref/source/util/checkwhite')
-rwxr-xr-x | crawl-ref/source/util/checkwhite | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/util/checkwhite b/crawl-ref/source/util/checkwhite index 38724eb9a1..16a150d3ff 100755 --- a/crawl-ref/source/util/checkwhite +++ b/crawl-ref/source/util/checkwhite @@ -46,6 +46,9 @@ for (@files) $_=expand $_, print "tab: $file\n" if !$tab && /\t/; print "spaces at eol: $file\n" if s/ +\n/\n/sg; print "CR: $file\n" if s/\r//sg; + # Note: it's a byte string, as we had to handle invalid encodings above, + # and $cont may be invalid. + print "zero width space: $file\n" if s/\xe2\x80\x8b//sg; # U+200B if ($_ ne $cont) { |