Method: Puppet::Util::Colors#html_color
- Defined in:
- lib/puppet/util/colors.rb
#html_color(color, str) ⇒ Object
96 97 98 99 |
# File 'lib/puppet/util/colors.rb', line 96 def html_color(color, str) span = '<span style="%s">' % Colormap[color][:html] "#{span}%s</span>" % str.gsub(/<span .*?<\/span>/, "</span>\\0#{span}") end |