Add test for table with empty line between table and row tag
authorGabriel Wicke <gwicke@wikimedia.org>
Tue, 19 Mar 2013 23:31:09 +0000 (16:31 -0700)
committerGabriel Wicke <gwicke@wikimedia.org>
Tue, 19 Mar 2013 23:31:09 +0000 (16:31 -0700)
Test case:

{|

|-
| foo
|}

Change-Id: I71c0be624aef3b9cf40b58cab8c7a448dda44033

tests/parser/parserTests.txt

index 30d4751..03f9659 100644 (file)
@@ -3282,6 +3282,24 @@ Table with row followed by newlines and table heading
 
 !! end
 
+!! test
+Table with empty line following the start tag
+!! input
+{|
+
+|-
+| foo
+|}
+!! result
+<table>
+
+
+<tr>
+<td> foo
+</td></tr></table>
+
+!! end
+
 # FIXME: Preserve the attribute properly (with an empty string as value) in
 # the PHP parser. Parsoid implements the behavior below.
 !! test