From: Vincent Vanwaelscappel Date: Wed, 18 Jul 2018 15:37:37 +0000 (+0200) Subject: fix #2106 @1.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=91aede403fd2e850cf529d15b5c26aa1ff4bdfe1;p=fluidbook-html5.git fix #2106 @1.5 --- diff --git a/js/libs/fluidbook/fluidbook.share.js b/js/libs/fluidbook/fluidbook.share.js index 8c816348..201ea151 100644 --- a/js/libs/fluidbook/fluidbook.share.js +++ b/js/libs/fluidbook/fluidbook.share.js @@ -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; },