]> _ Git - fluidbook-html5.git/commitdiff
fix #2106 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 18 Jul 2018 15:37:37 +0000 (17:37 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 18 Jul 2018 15:37:37 +0000 (17:37 +0200)
js/libs/fluidbook/fluidbook.share.js

index 8c816348f2c99ac451566fb563f6ca4ee302768f..201ea1514df255d095b21d685089099621504d7a 100644 (file)
@@ -125,6 +125,10 @@ FluidbookShare.prototype = {
             body = body.replace(/\%link\%/g, u);
         }
 
+        body = body.replace(/\\r\\n/g, "\n");
+        body = body.replace(/\\r/g, "\n");
+        body = body.replace(/\\n/g, "\r\n");
+        console.log(body);
         return body;
     },