Fixed handling of Windows EOLs in the import_storage

This commit is contained in:
Alexey Verkhovsky 2005-09-27 03:30:42 +00:00
parent 16454549fe
commit 5b1778a7f1

View file

@ -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