### Comments
###
!! test
-Comments and Pre
+Comments and Indent-Pre
!! input
<!-- comment 1 --> asdf
!! end
!!test
-Templates: Pre: 1a. Templates that break a line should suppress <pre>
+Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
!!input
{{echo|}}
!!result
!!end
!!test
-Templates: Pre: 1b. Templates that break a line should suppress <pre>
+Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
!!input
{{echo|
foo}}
!!end
!! test
-Templates: Pre: 1c: Wrapping should be based on expanded content
+Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
!! input
{{echo|a
b}}
!!end
!! test
-Templates: Pre: 1d: Wrapping should be based on expanded content
+Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
!! input
{{echo|a
b
!!end
!!test
-Templates: Pre: 1e. Wrapping should be based on expanded content
+Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
!!input
{{echo| foo}}
!!end
!! test
-Templates: Pre: 1f: Wrapping should be based on expanded content
+Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
!! input
{{echo| }}a
###
!!test
-1a. Pre and Comments
+1a. Indent-Pre and Comments
!!input
a
<!--a-->
!!end
!!test
-1b. Pre and Comments
+1b. Indent-Pre and Comments
!!input
a
<!--a-->
!!end
!!test
-1c. Pre and Comments
+1c. Indent-Pre and Comments
!!input
<!--a--> a
!!end
!!test
-2a. Pre and tables
+2a. Indent-Pre and tables
!!input
{|
|-
!!end
!!test
-2b. Pre and tables
+2b. Indent-Pre and tables
!!input
{|
|-
!!end
!!test
-3a. Pre and block tags (single-line html)
+3a. Indent-Pre and block tags (single-line html)
!!input
<p> foo </p>
<div> foo </div>
!!end
!!test
-3b. Pre and block tags (pre-content on separate line)
+3b. Indent-Pre and block tags (pre-content on separate line)
!!input
<p>
foo
!!end
+###
+### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
+###
+
+!!test
+HTML-pre: 1. embedded newlines
+!!input
+<pre>foo</pre>
+
+<pre>
+foo
+</pre>
+
+<pre>
+
+foo
+</pre>
+
+<pre>
+
+
+foo
+</pre>
+!!result
+<pre>foo</pre>
+<pre>
+foo
+</pre>
+<pre>
+
+foo
+</pre>
+<pre>
+
+
+foo
+</pre>
+
+!!end
+
+!!test
+HTML-pre: 2: indented text
+!!input
+<pre>
+ foo
+</pre>
+!!result
+<pre>
+ foo
+</pre>
+
+!!end
+
+!!test
+HTML-pre: 3: other wikitext
+!!input
+<pre>
+* foo
+# bar
+= no-h =
+'' no-italic ''
+[[ NoLink ]]
+</pre>
+!!result
+<pre>
+* foo
+# bar
+= no-h =
+'' no-italic ''
+[[ NoLink ]]
+</pre>
+
+!!end
+
###
### Definition lists
###