mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Merge pull request #3625 from s9e/ticket/11742
[ticket/11742] Remove tabs-to-space conversion in [code]
This commit is contained in:
@@ -68,7 +68,7 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
|
||||
),
|
||||
array(
|
||||
'[code]unparsed code[/code]',
|
||||
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><code>unparsed code</code></div>'
|
||||
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>unparsed code</code></pre></div>'
|
||||
),
|
||||
array(
|
||||
'[list]no item[/list]',
|
||||
@@ -181,12 +181,12 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
|
||||
array(
|
||||
// Do not parse textual bbcodes in code
|
||||
'[code]unparsed code [b]bold [i]bold + italic[/i][/b][/code]',
|
||||
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><code>unparsed code [b]bold [i]bold + italic[/i][/b]</code></div>'
|
||||
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>unparsed code [b]bold [i]bold + italic[/i][/b]</code></pre></div>'
|
||||
),
|
||||
array(
|
||||
// Do not parse quote bbcodes in code
|
||||
'[code]unparsed code [quote="username"]quoted[/quote][/code]',
|
||||
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><code>unparsed code [quote="username"]quoted[/quote]</code></div>'
|
||||
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>unparsed code [quote="username"]quoted[/quote]</code></pre></div>'
|
||||
),
|
||||
array(
|
||||
// Textual bbcode nesting into textual bbcode
|
||||
@@ -195,7 +195,11 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
|
||||
),
|
||||
array(
|
||||
"[code]\tline1\n line2[/code]",
|
||||
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><code> line1<br>' . "\n" . ' line2</code></div>'
|
||||
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>' . "\tline1\n line2</code></pre></div>"
|
||||
),
|
||||
array(
|
||||
"[code]\n\tline1\n line2[/code]",
|
||||
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>' . "\tline1\n line2</code></pre></div>"
|
||||
),
|
||||
array(
|
||||
'... http://example.org ...',
|
||||
|
1
tests/text_processing/tickets_data/PHPBB3-11742.html
Normal file
1
tests/text_processing/tickets_data/PHPBB3-11742.html
Normal file
@@ -0,0 +1 @@
|
||||
<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code> tab</code></pre></div>
|
1
tests/text_processing/tickets_data/PHPBB3-11742.txt
Normal file
1
tests/text_processing/tickets_data/PHPBB3-11742.txt
Normal file
@@ -0,0 +1 @@
|
||||
[code] tab[/code]
|
Reference in New Issue
Block a user