From 0741b40cab5de5553cabfd49bda22d8d46a1aee4 Mon Sep 17 00:00:00 2001 From: Christoph K Date: Wed, 31 Jan 2018 18:35:12 +0100 Subject: [PATCH] Added missing list styling --- src/ChrisKonnertz/BBCode/BBCode.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ChrisKonnertz/BBCode/BBCode.php b/src/ChrisKonnertz/BBCode/BBCode.php index 1be1964..3f814d4 100644 --- a/src/ChrisKonnertz/BBCode/BBCode.php +++ b/src/ChrisKonnertz/BBCode/BBCode.php @@ -43,7 +43,7 @@ class BBCode /** * The current version number */ - const VERSION = '1.1.0'; + const VERSION = '1.1.1'; /** * The text with BBCodes @@ -371,7 +371,9 @@ protected function generateTag(Tag $tag, &$html, Tag $openingTag = null, array $ if ($tag->property) { $listType = '
    '; - if ($tag->property == 'a') { + if ($tag->property == 'i') { + $listType = '
      '; + } elseif ($tag->property == 'a') { $listType = '
        '; } } @@ -382,6 +384,8 @@ protected function generateTag(Tag $tag, &$html, Tag $openingTag = null, array $ $code = ''; } elseif ($this->endsWith($html, '
          ')) { $code = '
        '; + } elseif ($this->endsWith($html, '
          ')) { + $code = '
        '; } elseif ($this->endsWith($html, '
          ')) { $code = '
        '; } elseif ($this->endsWith($html, '') and $openingTag->property) {