From f2d380d6d5a51fc0dd009c025523bd3a41bdbb0d Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Tue, 29 Oct 2013 19:57:49 +0100 Subject: [PATCH] fix html parsing in write --- src/js/controller/write.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/js/controller/write.js b/src/js/controller/write.js index 13fa8e2..46a0867 100644 --- a/src/js/controller/write.js +++ b/src/js/controller/write.js @@ -125,6 +125,9 @@ define(function(require) { function has(substr) { return (body.indexOf(substr) !== -1); } + while (has('

')) { + body = body.replace('

', '\n'); + } while (has('
')) { body = body.replace('
', '\n'); }