lib/gettext/po_entry.rb in gettext-3.4.5 vs lib/gettext/po_entry.rb in gettext-3.4.6

- old
+ new

@@ -239,11 +239,10 @@ class Formatter class << self def escape(string) return "" if string.nil? - string.gsub(/([\\"\t\r\n])/) do - special_character = $1 + string.gsub(/[\\"\t\r\n]/) do |special_character| case special_character when "\t" "\\t" when "\r" "\\r"