diff options
author | uckelman <uckelman@nomic.net> | 2010-04-25 20:58:04 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-04-25 20:58:04 +0000 |
commit | f573e79cbd437a208d87d9c7265407eed4f3d36a (patch) | |
tree | 62b850bad5a500dd49bd22f8ef0ebaac301a9951 /src/BBCodeParser.php | |
parent | bc6a9a13842f53302333ee247a0450f6bb3fab1a (diff) |
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
Diffstat (limited to 'src/BBCodeParser.php')
-rw-r--r-- | src/BBCodeParser.php | 9 |
1 files changed, 9 insertions, 0 deletions
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; |