module CommitsHelper include Utils::CharEncode def diff_line(line, line_new = 0, line_old = 0) full_line = html_escape(line.gsub(/\n/, '')) color = if line[0] == "+" full_line = " #{line_new} " + full_line "#DFD" elsif line[0] == "-" full_line = "#{line_old} " + full_line "#FDD" else full_line = "#{line_old}#{line_new} " + full_line "none" end raw "