aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/includes
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-05-08 15:41:54 +0000
committerMario <mario@mariovavti.com>2024-05-08 15:41:54 +0000
commit481e08b904313b768305d82b67f5f8602713b329 (patch)
tree29325c519862608889da48590dccd3a710450a15 /tests/unit/includes
parent76ce4705e23f286cf6b568191840404e5cb94e9f (diff)
downloadvolse-hubzilla-481e08b904313b768305d82b67f5f8602713b329.tar.gz
volse-hubzilla-481e08b904313b768305d82b67f5f8602713b329.tar.bz2
volse-hubzilla-481e08b904313b768305d82b67f5f8602713b329.zip
remove p tags from li. otherwise we will get unwanted new lines in the list. add test.
Diffstat (limited to 'tests/unit/includes')
-rw-r--r--tests/unit/includes/BBCodeTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/includes/BBCodeTest.php b/tests/unit/includes/BBCodeTest.php
index 887374c13..94cad1367 100644
--- a/tests/unit/includes/BBCodeTest.php
+++ b/tests/unit/includes/BBCodeTest.php
@@ -239,6 +239,10 @@ class BBCodeTest extends UnitTestCase {
'<ul><li>list 1</li><li>list 2</li><li>list 3</li></ul>',
'[list][*]list 1[*]list 2[*]list 3[/list]'
],
+ 'list with paragraph' => [
+ '<ul><li><p>list 1</p></li><li><p>list 2</p></li><li><p>list 3</p></li></ul>',
+ '[list][*]list 1[*]list 2[*]list 3[/list]'
+ ],
'nested list' => [
'<ul><li>list 1</li><li>list 2</li><li>list 3</li><ul><li>list 1</li><li>list 2</li><li>list 3</li></ul></ul>',
'[list][*]list 1[*]list 2[*]list 3[list][*]list 1[*]list 2[*]list 3[/list][/list]'