-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[html] formatting option "html.format.extraLiners" doesn't work #4261
Comments
fixed by 4b36383 |
Not sure if I should have opened a new issue or not. "html.format.extraLiners" doesn't work with some tags.
Steps to Reproduce:
What should happen instead: <body>
<h1></h1>
<h2></h2>
<h3></h3>
<h4></h4>
<h5></h5>
<h6></h6>
<address></address>
<dl>
<dd></dd>
<dt></dt>
</dl>
<hr>
<pre></pre>
</body> |
It looks like there's a regression, as if VSCode would no longer respect
Steps to Reproduce:
ExpectedLines are inserted also after <!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<div>foo</div>
<div>foo</div>
<div>foo</div>
<p>foo</p>
<p>foo</p>
<p>foo</p>
</body>
</html> ActualMissing new lines after <!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<div>foo</div>
<div>foo</div>
<div>foo</div>
<p>foo</p>
<p>foo</p>
<p>foo</p>
</body>
</html> |
testing #4066
html.format.extraLiners
fromnull
toHEAD
Observe:
There is no extra line before the HEAD tag.
html.format.extraLiners
tonull
Observe: now there is an extra line before the HEAD and BODY tags:
The text was updated successfully, but these errors were encountered: