From 507a0310a254298927ce71f0650a597c83c0b70c Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Tue, 2 Mar 2010 22:13:47 +0100 Subject: [PATCH 1/1] Fixes #382. --- platforma/settings.py | 0 platforma/static/js/xslt.js | 8 +++----- 2 files changed, 3 insertions(+), 5 deletions(-) mode change 100644 => 100755 platforma/settings.py 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'); -- 2.20.1