Sha256: b8fc230e69eeaddbe71e066adfc69ded09a7379ed403631d1badf369888a008b
Contents?: true
Size: 400 Bytes
Versions: 24
Compression:
Stored size: 400 Bytes
Contents
# 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 s.gsub(/“|”/, '"').gsub(/‘|’/, '\'').gsub('…', '...').gsub('©', '(c)') end end end
Version data entries
24 entries across 24 versions & 1 rubygems