# empty line, go to next line,
# but only append \n if outside of table
- if ( $line === '' ) {
- $out .= $outLine;
- if ( !isset( $tables[0] ) ) {
- $out .= "\n";
- }
+ if ( $line === '') {
+ $output .= $outLine . "\n";
continue;
}
$firstChars = $line[0];
</tr>
</table>
+!! end
+!! test
+Table with broken up list inside
+!! input
+{|
+|style="width: 5em; text-align: center"| gives
+|style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em"|
+# Some
+# list
+# Lorem
+
+# ipsum
+# dolor
+|}
+!! result
+<table>
+<tr>
+<td style="width: 5em; text-align: center">gives
+</td>
+<td style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em">
+<ol><li> Some
+</li><li> list
+</li><li> Lorem
+</li></ol>
+<ol><li> ipsum
+</li><li> dolor
+</li></ol>
+</td>
+</tr>
+</table>
+
!! end
!! test
Simple paragraph
<td>1
</td>
<td>2
+<p><br />
+</p>
</td>
</tr>
<tr>
==Section 1==
!! result
==Section 1==
+!! end
+!! article
+Template:Top-level template
+!! text
+{{Nested template}}
+!! endarticle
+
+!! article
+Template:Nested template
+!! text
+*Item 1
+*Item 2
+!! endarticle
+
+!! test
+Line-start flag in a nested template call
+!! input
+*Item A
+*Item B
+
+{{Top-level template}}
+!! result
+<ul><li>Item A
+</li><li>Item B
+</li></ul>
+<ul><li>Item 1
+</li><li>Item 2
+</li></ul>
+
!! end
###
!!result
<p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
+</p><p><br />
</p>
!! end
<p>{{{|
<u class="|">}}}} >
<br style="onmouseover='alert(document.cookie);'" />
-MOVE YOUR MOUSE CURSOR OVER THIS TEXT
+</p><p>MOVE YOUR MOUSE CURSOR OVER THIS TEXT
</p>
<table>
<tr>