Add a parserTest documenting interaction of tabs and preformatted text.
authorC. Scott Ananian <cscott@cscott.net>
Fri, 16 Aug 2013 16:16:15 +0000 (12:16 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Fri, 16 Aug 2013 16:16:15 +0000 (12:16 -0400)
Tabs are apparently used this way on the front page of plwiki.

Change-Id: I0a65d5a9783071e91696ed2b96887f44199a999d

tests/parser/parserTests.txt

index 91fabb7..751ec41 100644 (file)
@@ -1310,6 +1310,22 @@ And a <a href="/wiki/Main_Page" title="Main Page">link</a>
 </pre>
 !! end
 
+!! test
+Tabs don't trigger preformatted text
+!! input
+       This is not
+        preformatted text.
+ This is preformatted text.
+       So is this.
+!! result
+<p>    This is not
+        preformatted text.
+</p>
+<pre>This is preformatted text.
+       So is this.
+</pre>
+!! end
+
 !! test
 Ident preformatting with inline content
 !! input