From: Brad Jorsch Date: Mon, 26 Feb 2018 21:49:08 +0000 (-0500) Subject: Parser: Don't wrap - + + !! html/php+tidy
@@ -29917,6 +29915,86 @@ wgRawHtml=1
!! end +!! test +Validating that + + + +But if it's on a line with other content, let it be wrapped. + + bar + +foo + +foo bar + +And the same if we have non-paragraph-breaking whitespace + +foo + +bar +!! html/php +

A style tag, by itself or with other style/link tags, shouldn't be wrapped in a paragraph +

+ + +

But if it's on a line with other content, let it be wrapped. +

bar +

foo +

foo bar +

And the same if we have non-paragraph-breaking whitespace +

foo + +bar +

+!! end + +!! test +Validating that isn't wrapped in a paragraph (T186965) +!! options +styletag=1 +!! wikitext +A link tag, by itself or with other style/link tags, shouldn't be wrapped in a paragraph + + + + + +But if it's on a line with other content, let it be wrapped. + + bar + +foo + +foo bar + +And the same if we have non-paragraph-breaking whitespace + +foo + +bar +!! html/php +

A link tag, by itself or with other style/link tags, shouldn't be wrapped in a paragraph +

+ + +

But if it's on a line with other content, let it be wrapped. +

bar +

foo +

foo bar +

And the same if we have non-paragraph-breaking whitespace +

foo + +bar +

+!! end + !! test Decoding of HTML entities in headings and links for IDs and link fragments (T103714) !! config