From 9dd12fe73b7367803e3360f2deee99c9a84c6e70 Mon Sep 17 00:00:00 2001 From: Tekin Birduezen Date: Wed, 24 Jun 2015 11:27:07 +0200 Subject: [PATCH] Removed \n from second_pass_replace --- nassim/sceditor/migrations/bbcodedata.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nassim/sceditor/migrations/bbcodedata.php b/nassim/sceditor/migrations/bbcodedata.php index ecfc293..71813b5 100644 --- a/nassim/sceditor/migrations/bbcodedata.php +++ b/nassim/sceditor/migrations/bbcodedata.php @@ -107,7 +107,7 @@ public function addbbcode() 'first_pass_match' => '!\\[sub\\](.*?)\\[/sub\\]!ies', 'first_pass_replace' => '\'[sub:$uid]\'.str_replace(array("\\r\\n", \'\\"\', \'\\\'\', \'(\', \')\'), array("\\n", \'"\', \''\', \'(\', \')\'), trim(\'${1}\')).\'[/sub:$uid]\'', 'second_pass_match' => '!\\[sub:$uid\\](.*?)\\[/sub:$uid\\]!s', - 'second_pass_replace' => '\n${1}', + 'second_pass_replace' => '${1}', ), array( // row #5 'bbcode_id' => ++$style_ids, @@ -119,7 +119,7 @@ public function addbbcode() 'first_pass_match' => '!\\[sup\\](.*?)\\[/sup\\]!ies', 'first_pass_replace' => '\'[sup:$uid]\'.str_replace(array("\\r\\n", \'\\"\', \'\\\'\', \'(\', \')\'), array("\\n", \'"\', \''\', \'(\', \')\'), trim(\'${1}\')).\'[/sup:$uid]\'', 'second_pass_match' => '!\\[sup:$uid\\](.*?)\\[/sup:$uid\\]!s', - 'second_pass_replace' => '\n${1}', + 'second_pass_replace' => '${1}', ), array( // row #6 'bbcode_id' => ++$style_ids, @@ -203,7 +203,7 @@ public function addbbcode() 'first_pass_match' => '!\\[table\\](.*?)\\[/table\\]!ies', 'first_pass_replace' => '\'[table:$uid]\'.str_replace(array("\\r\\n", \'\\"\', \'\\\'\', \'(\', \')\'), array("\\n", \'"\', \''\', \'(\', \')\'), trim(\'${1}\')).\'[/table:$uid]\'', 'second_pass_match' => '!\\[table:$uid\\](.*?)\\[/table:$uid\\]!s', - 'second_pass_replace' => '\n\n${1}\n\n
', + 'second_pass_replace' => '${1}
', ), array( // row #13 'bbcode_id' => ++$style_ids, @@ -215,7 +215,7 @@ public function addbbcode() 'first_pass_match' => '!\\[td\\](.*?)\\[/td\\]!ies', 'first_pass_replace' => '\'[td:$uid]\'.str_replace(array("\\r\\n", \'\\"\', \'\\\'\', \'(\', \')\'), array("\\n", \'"\', \''\', \'(\', \')\'), trim(\'${1}\')).\'[/td:$uid]\'', 'second_pass_match' => '!\\[td:$uid\\](.*?)\\[/td:$uid\\]!s', - 'second_pass_replace' => '\n${1}', + 'second_pass_replace' => '${1}', ), array( // row #14 'bbcode_id' => ++$style_ids,