From 1c354ac62bde7abfc36619192a0ef8f7b2b87f3a Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 2 Dec 2012 02:54:03 -0800 Subject: [PATCH] Issue #24 - fix for broken bullets and tables. Excess space generated when switching between WYSIWYG and Bbcode remains. --- e107_handlers/bbcode_handler.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/e107_handlers/bbcode_handler.php b/e107_handlers/bbcode_handler.php index 13ed2916b..e34524364 100644 --- a/e107_handlers/bbcode_handler.php +++ b/e107_handlers/bbcode_handler.php @@ -571,17 +571,17 @@ class e_bbcode $text = preg_replace('//i', "[table $1]",$text); $text = preg_replace('//i', "[tbody]\n",$text); + $text = preg_replace('//i', "[tbody]",$text); $text = preg_replace('/'), // array( "\n", '

'), - array( "\n[/list]", ''), + array( "[/list]", '\n'), array( "[h=2]", '

'), // e107 bbcode markup array( "[h=2]", '

'), array( "[/h]", '

'), @@ -603,10 +603,10 @@ class e_bbcode array( "[/b]", ''), array( "[/i]", ''), array( "[/block]", ''), - array( "[/table]\n", '
'), - array( "[/tbody]\n", ''), + array( "[/table]", ''), + array( "[/tbody]", ''), array( "[/code]\n", ''), - array( "\n[/tr]\n", ''), + array( "[/tr]", ''), array( "[/td]", ''), array( "[/blockquote]",''), array( "]", ' style=]')