From 5b1778a7f1dc9b545d10c2b043021c0901f1a5fb Mon Sep 17 00:00:00 2001 From: Alexey Verkhovsky Date: Tue, 27 Sep 2005 03:30:42 +0000 Subject: [PATCH] Fixed handling of Windows EOLs in the import_storage --- script/import_storage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/import_storage b/script/import_storage index 0f6d6b21..a999d0ca 100755 --- a/script/import_storage +++ b/script/import_storage @@ -124,7 +124,7 @@ def sql_insert(table, hash) else raise "Unsupported database option #{OPTIONS[:database]}" end - "'#{escaped_value}'" + "'#{escaped_value.gsub("\r\n", "\n")}'" end end