lib/rdf/writer.rb in rdf-1.0.3 vs lib/rdf/writer.rb in rdf-1.0.4
- old
+ new
@@ -464,11 +464,16 @@
##
# @param [String] string
# @return [String]
def escaped(string)
- string.gsub('\\', '\\\\').gsub("\t", '\\t').
- gsub("\n", '\\n').gsub("\r", '\\r').gsub('"', '\\"')
+ string.gsub('\\', '\\\\').
+ gsub("\b", '\\b').
+ gsub("\f", '\\f').
+ gsub("\t", '\\t').
+ gsub("\n", '\\n').
+ gsub("\r", '\\r').
+ gsub('"', '\\"')
end
##
# @param [String] string
# @return [String]