CSV import to respect linebreaks

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
boettner
Posts: 84
Joined: 09 Feb 2015, 17:49

CSV import to respect linebreaks

Post by boettner » 11 Mar 2020, 13:51

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