From 1a0839bf5721963ce7657169828ccf0b909b76ae Mon Sep 17 00:00:00 2001 From: uckelman Date: Sun, 25 Apr 2010 21:17:16 +0000 Subject: Fixing list spacing. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6761 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/BBCodeParser.php | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/BBCodeParser.php') diff --git a/src/BBCodeParser.php b/src/BBCodeParser.php index 87c4175..0131dde 100644 --- a/src/BBCodeParser.php +++ b/src/BBCodeParser.php @@ -89,7 +89,6 @@ class BBCodeParser { $out .= "\n"; break; case 'list': - $out .= "\n"; switch ($arg) { case '1': $list_counter_stack[] = 1; break; @@ -175,19 +174,10 @@ class BBCodeParser { case 'list:u': # TODO: untested array_pop($list_counter_stack); - - if ($in[$i] != "\n") { - # add newline after list only if there is not one already - $out .= "\n"; - } break; case '*': case '*:m': # TODO: untested - if ($in[$i] != "\n") { - # add newline after item only if there is not one already - $out .= "\n"; - } break; case 'img': # TODO: untested -- cgit v1.2.3