X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/594998281db97c722685e9e8ed5759d4e5b2ded0..52f92df8dabe27a83c1f97fea0cea73f81e7227d:/redakcja/static/js/wiki/xslt.js
diff --git a/redakcja/static/js/wiki/xslt.js b/redakcja/static/js/wiki/xslt.js
index 86c6d362..791cf1a3 100644
--- a/redakcja/static/js/wiki/xslt.js
+++ b/redakcja/static/js/wiki/xslt.js
@@ -61,7 +61,7 @@ function withThemes(code_block, onError)
function xml2html(options) {
withStylesheets(function() {
- var xml = options.xml.replace(/\/\s+/g, '
');
+ var xml = options.xml.replace(/\/(\s+)/g, '
$1');
var parser = new DOMParser();
var serializer = new XMLSerializer();
var doc = parser.parseFromString(xml, 'text/xml');
@@ -271,7 +271,7 @@ HTMLSerializer.prototype.serialize = function(rootElement, stripOuter)
if(xnode === 'wers') {
/* push children */
if(self._verseBefore(token.node))
- self.result += '/\n';
+ self.result += '/';
self._pushChildren(token.node);
break;
};