Sha256: 72218948408523d14c87d6a38b55e9dda632591a98050cf580cc0438942532b4
Contents?: true
Size: 393 Bytes
Versions: 11
Compression:
Stored size: 393 Bytes
Contents
module Nanoc::CLI::StreamCleaners # Simplifies output by replacing UTF-8 characters with their ASCII decompositions. # # @api private class UTF8 < Abstract # @see Nanoc::CLI::StreamCleaners::Abstract#clean def clean(s) # FIXME: this decomposition is not generally usable s.tr('─┼“”‘’', '-+""\'\'').gsub('…', '...').gsub('©', '(c)') end end end
Version data entries
11 entries across 11 versions & 1 rubygems