From f573e79cbd437a208d87d9c7265407eed4f3d36a Mon Sep 17 00:00:00 2001 From: uckelman Date: Sun, 25 Apr 2010 20:58:04 +0000 Subject: Handle additional annotation for [/list] and [/*]. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6755 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/BBCodeParser.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/BBCodeParser.php b/src/BBCodeParser.php index 9e3233a..4d85a07 100644 --- a/src/BBCodeParser.php +++ b/src/BBCodeParser.php @@ -122,6 +122,7 @@ class BBCodeParser { $out = ''; break; case 'attachment': +# TODO: unimplemented break; case 'color': case 'size': @@ -147,6 +148,7 @@ class BBCodeParser { break; case 'url': case 'email': +# TODO: untested if ($arg !== false) { # built footnotes for links with text $out .= '[' . $fn_number++ .']'; @@ -161,19 +163,26 @@ class BBCodeParser { $out = array_pop($text_stack) . $out . "\n"; break; case 'code': +# TODO: untested # FIXME: don't wordwrap code! $out .= "\n"; break; case 'list': + case 'list:l': + case 'list:u': +# TODO: untested $out .= "\n"; array_pop($list_counter_stack); break; case '*': + case '*:m': +# TODO: untested if ($in[$i] != "\n") { $out .= "\n"; } break; case 'img': +# TODO: untested $fn[] = $out; $out = array_pop($text_stack) . '[' . $fn_number++ . ']'; break; -- cgit v1.2.3