Page 1 of 1

CSV import to respect linebreaks

Posted: 11 Mar 2020, 13:51
by boettner
Hi all,

I needed to preserve linebreaks in text columns of an import CSV and wrote a little Converter for that purpose. No big hit but maybe someone needs it too: https://gist.github.com/boettner-it/110 ... edf46965fb

Place it in: typo3conf/ext/youraimeosext/Resources/Private/Extensions/youraimeosext/lib/custom/src/MW/Convert/Text/Nl2Br.php

Replace "youraimeosext" with the name of your extension.

Best
Robert.

Keywords for forum search because I couldnĀ“t find anything:
linebreak, newline, linefeed, carriage return