Reply to thread

Sorted, with a quick conversion in EntityEmulator::set()

[CODE=diff]Index: src/XF/Import/Data/EntityEmulator.php

IDEA additional info:

Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP

<+>UTF-8

===================================================================

--- src/XF/Import/Data/EntityEmulator.php    (revision d4f8f0b2978cd833501dacdef39f5accb3eb9eef)

+++ src/XF/Import/Data/EntityEmulator.php    (date 1520956664000)

@@ -74,6 +74,12 @@

             throw new \InvalidArgumentException("Unknown column '$field'");

         }

 

+        // Convert CRLF to LF

+        if (is_string($value))

+        {

+            $value = str_replace("\r\n", "\n", $value);

+        }

+

         $vf = $this->valueFormatter;

         $originalValue = $value;

 

[/CODE]


Back
Top Bottom