# File lib/lucky_sneaks/string_extensions.rb, line 18
18:     def to_html(lite_mode = false)
19:       if defined?(RedCloth)
20:         if lite_mode
21:           RedCloth.new(self, [:lite_mode]).to_html
22:         else
23:           if self =~ /<pre>/
24:             RedCloth.new(self).to_html.tr("\t", "")
25:           else
26:             RedCloth.new(self).to_html.tr("\t", "").gsub(/\n\n/, "")
27:           end
28:         end
29:       else
30:         warn "String#to_html was called without RedCloth being successfully required"
31:         self
32:       end
33:     end