diff options
author | Tim Roes <mail@timroes.de> | 2012-05-07 17:08:35 +0200 |
---|---|---|
committer | Tim Roes <mail@timroes.de> | 2012-05-07 17:08:35 +0200 |
commit | efa78c8638547cab77a37006e7f86aed792a1609 (patch) | |
tree | 492804d80b28f8e32785b3648d9e03e77804b50f /lib/exe/js.php | |
parent | ae992f53831c105d6deacfef79d7723b22a00033 (diff) | |
parent | f774b92a94947b3eabd64919b6b4ba74f9c4b5fd (diff) | |
download | rpg-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.php | 10 |
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; } |