lib/nanoc/cli/stream_cleaners/utf8.rb in nanoc-3.7.4 vs lib/nanoc/cli/stream_cleaners/utf8.rb in nanoc-3.7.5
- old
+ new
@@ -1,16 +1,12 @@
# encoding: utf-8
module Nanoc::CLI::StreamCleaners
-
# Simplifies output by replacing UTF-8 characters with their ASCII decompositions.
class UTF8 < Abstract
-
# @see Nanoc::CLI::StreamCleaners::Abstract#clean
def clean(s)
- # FIXME this decomposition is not generally usable
+ # FIXME: this decomposition is not generally usable
s.gsub(/“|”/, '"').gsub(/‘|’/, '\'').gsub('…', '...').gsub('©', '(c)')
end
-
end
-
end