]> git.koha-community.org Git - koha.git/commit
Bug 6727 - Change on exporting and importing csv to deal with spurious CR/LF
authorSalvador Zaragoza Rubio <salvazm@masmedios.com>
Fri, 19 Aug 2011 10:33:05 +0000 (12:33 +0200)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Fri, 2 Sep 2011 18:43:10 +0000 (14:43 -0400)
commit09010c20383fc1f592d0376559765024b302ebac
tree052d69e8932d2c4ee8935b2b36d023af04c458d4
parentf1e7a9f019cb82c555711129b63b06282f0b397d
Bug 6727 - Change on exporting and importing csv to deal with spurious CR/LF

Function _export_table_csv modified to remove CR/LF in the data
from the database to built a correct csv file.

Function _import_table_csv modified to deal with CR/LF in the data
field. When a line is found with an unproper end (a data field has not
end quote), it's concatenated to a temporary buffer until the next
line ends ok and then it's proccessed.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 6b69260fbd75f80b1831341b9bb5b18b54fef56b)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
C4/ImportExportFramework.pm