# File lib/kwartz/binding/ruby.rb, line 200 def translate_string(str) return if str.nil? || str.empty? #str.gsub!(/['\\]/, '\\\\\&') #@sb << "_buf << '#{str}'; " str.gsub!(/["\\]/, '\\\\\&') if str[-1] == ?\n str.chop! @sb << "_buf << \"#{str}\\n\";" << @nl else @sb << "_buf << \"#{str}\"; " end end