aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-03-25 21:42:50 +0100
committerMario <mario@mariovavti.com>2024-03-25 21:42:50 +0100
commit53354a19304c932beea484e387d2c9536786e258 (patch)
tree7827621824a9d794de634896c775cc8988c5224c /tests
parent3c0d6339bb12bd7fbf65ba7a79078e39737b4387 (diff)
downloadvolse-hubzilla-53354a19304c932beea484e387d2c9536786e258.tar.gz
volse-hubzilla-53354a19304c932beea484e387d2c9536786e258.tar.bz2
volse-hubzilla-53354a19304c932beea484e387d2c9536786e258.zip
more remove additional linebreaks after block element plus test
Diffstat (limited to 'tests')
-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 a6c798992..a8aa8ee2b 100644
--- a/tests/unit/includes/BBCodeTest.php
+++ b/tests/unit/includes/BBCodeTest.php
@@ -107,6 +107,10 @@ class BBCodeTest extends UnitTestCase {
"[code]\ntestvar = \"this is a test\"\necho \"the message is \$testvar\"\n[/code]",
'<pre><code>testvar = "this is a test"<br />echo "the message is $testvar"</code></pre>',
],
+ 'code block with surroundin linebreaks \n' => [
+ "some text\n[code]\ntestvar = \"this is a test\"\necho \"the message is \$testvar\"\n[/code]\nsome more text",
+ 'some text<br /><pre><code>testvar = "this is a test"<br />echo "the message is $testvar"</code></pre>some more text',
+ ],
'list with linebreaks \n' => [
"some text\n[list]\n[*] item1\n[*] item2\n[/list]\nsome more text",
'some text<br /><ul class="listbullet"><li> item1<li> item2</ul>some more text'