From: Łukasz Rekucki Date: Tue, 2 Mar 2010 21:13:47 +0000 (+0100) Subject: Fixes #382. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/507a0310a254298927ce71f0650a597c83c0b70c?ds=inline;hp=beb9f10bd04b0085e66fd46b9f412269da9ea668 Fixes #382. --- diff --git a/platforma/settings.py b/platforma/settings.py old mode 100644 new mode 100755 diff --git a/platforma/static/js/xslt.js b/platforma/static/js/xslt.js index 95cc5fc5..c3f13d6a 100644 --- a/platforma/static/js/xslt.js +++ b/platforma/static/js/xslt.js @@ -50,11 +50,7 @@ function serialize(element, mode) { } if (element.nodeType == 3) { // tekst - if (mode == 'block') { - return [$.trim(element.nodeValue)]; - } else { - return [element.nodeValue]; - } + return [element.nodeValue]; } else if (element.nodeType != 1) { // pomijamy węzły nie będące elementami XML ani tekstem return []; } @@ -62,6 +58,8 @@ function serialize(element, mode) { var result = []; var hasContent = false; + + if (MARGIN[element.tagName]) { for (var i=0; i < MARGIN[element.tagName]; i++) { result.push('\n');