fix CCUnix.escape_str

This commit is contained in:
Simon Cruanes 2015-03-30 11:53:55 +02:00
parent 6fb26288ad
commit 1da809c596
2 changed files with 3 additions and 3 deletions

View file

@ -50,7 +50,7 @@ let rec iter_gen f g = match g() with
(* print a string, but escaped if required *)
let escape_str buf s =
if str_exists s
(function ' ' | '"' | '\'' -> true | _ -> false)
(function ' ' | '"' | '\'' | '\n' | '\t'-> true | _ -> false)
then (
Buffer.add_char buf '\'';
String.iter