# File lib/ramaze/helper/formatting.rb, line 159 def nl2br(string, xhtml = true) br = xhtml ? '<br />' : '<br>' string.gsub(/\n/, br) end