]> _ Git - fluidbook-toolbox.git/commitdiff
#7571 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 27 May 2025 14:45:03 +0000 (16:45 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 27 May 2025 14:45:03 +0000 (16:45 +0200)
app/Fluidbook/Link/LinksData.php

index dde655d9e1c162028586abe2e5eeb91d3c3dfc2b..ada8f99c95b5f175f0e59d52581ec82b121cae38 100644 (file)
@@ -715,12 +715,14 @@ class LinksData
                 $k = 0;
                 foreach ($cols as $col => $default) {
                     if (isset($line[$k])) {
+                        $v = $line[$k];
+                        $v = str_replace("§!§", "\n", $v);
                         if (in_array($col, $numbers)) {
-                            $link[$col] = (float)str_replace(',', '.', $line[$k]);
+                            $link[$col] = (float)str_replace(',', '.', $v);
                         } else if (in_array($col, $booleans)) {
-                            $link[$col] = ($line[$k] == '1');
+                            $link[$col] = ($v == '1');
                         } else {
-                            $link[$col] = $line[$k];
+                            $link[$col] = $v;
                         }
                     } else {
                         $link[$col] = $default;