summaryrefslogtreecommitdiff
path: root/lib/exe/js.php
diff options
context:
space:
mode:
authorTim Roes <mail@timroes.de>2012-05-07 17:08:35 +0200
committerTim Roes <mail@timroes.de>2012-05-07 17:08:35 +0200
commitefa78c8638547cab77a37006e7f86aed792a1609 (patch)
tree492804d80b28f8e32785b3648d9e03e77804b50f /lib/exe/js.php
parentae992f53831c105d6deacfef79d7723b22a00033 (diff)
parentf774b92a94947b3eabd64919b6b4ba74f9c4b5fd (diff)
downloadrpg-efa78c8638547cab77a37006e7f86aed792a1609.tar.gz
rpg-efa78c8638547cab77a37006e7f86aed792a1609.tar.bz2
Merge branch 'master' of https://github.com/splitbrain/dokuwiki
Diffstat (limited to 'lib/exe/js.php')
-rw-r--r--lib/exe/js.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/exe/js.php b/lib/exe/js.php
index 4b72014b2..7c54f3e2e 100644
--- a/lib/exe/js.php
+++ b/lib/exe/js.php
@@ -307,7 +307,10 @@ function js_compress($s){
$j += 1;
}
}
- $result .= substr($s,$i,$j+1);
+ $string = substr($s,$i,$j+1);
+ // remove multiline markers:
+ $string = str_replace("\\\n",'',$string);
+ $result .= $string;
$i = $i + $j + 1;
continue;
}
@@ -322,7 +325,10 @@ function js_compress($s){
$j += 1;
}
}
- $result .= substr($s,$i,$j+1);
+ $string = substr($s,$i,$j+1);
+ // remove multiline markers:
+ $string = str_replace("\\\n",'',$string);
+ $result .= $string;
$i = $i + $j + 1;
continue;
}