Cscott has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/79341


Change subject: Add a parserTest documenting interaction of tabs and 
preformatted text.
......................................................................

Add a parserTest documenting interaction of tabs and preformatted text.

Tabs are apparently used this way on the front page of plwiki.

Change-Id: I0a65d5a9783071e91696ed2b96887f44199a999d
---
M tests/parser/parserTests.txt
1 file changed, 16 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/41/79341/1

diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index 91fabb7..751ec41 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -1311,6 +1311,22 @@
 !! 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
  a

-- 
To view, visit https://gerrit.wikimedia.org/r/79341
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0a65d5a9783071e91696ed2b96887f44199a999d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Cscott <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to