Add a test for indent pres with content wrapped in inline element
authorGabriel Wicke <gwicke@wikimedia.org>
Thu, 15 Nov 2012 01:04:30 +0000 (17:04 -0800)
committerGabriel Wicke <gwicke@wikimedia.org>
Thu, 15 Nov 2012 01:06:36 +0000 (17:06 -0800)
A line of content fully wrapped in an inline element was an issue in Parsoid
round-tripping, so make sure this is detected in the future.

Parsoid fix: https://gerrit.wikimedia.org/r/#/c/33496/

Change-Id: I2497c90174fac69e9c4dc1cc898844e94e604b1b

tests/parser/parserTests.txt

index a98e584..d18da66 100644 (file)
@@ -787,6 +787,17 @@ And a <a href="/wiki/Main_Page" title="Main Page">link</a>
 </pre>
 !! end
 
+!! test
+Ident preformatting with inline content
+!! input
+ a
+ ''b''
+!! result
+<pre>a
+<i>b</i>
+</pre>
+!! end
+
 !! test
 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
 !! input