summaryrefslogtreecommitdiff
path: root/src/BBCodeParser.php
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-04-25 20:58:04 +0000
committeruckelman <uckelman@nomic.net>2010-04-25 20:58:04 +0000
commitf573e79cbd437a208d87d9c7265407eed4f3d36a (patch)
tree62b850bad5a500dd49bd22f8ef0ebaac301a9951 /src/BBCodeParser.php
parentbc6a9a13842f53302333ee247a0450f6bb3fab1a (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.php9
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;