<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
<p>
Line 1.
Line 2. </p>
<h3>Header 3.</h3>
</body>
</html>
I would like to apply formatting (Ctrl+Alt+L) to get the following:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
<p>
Line 1.
Line 2.
</p>
<h3>Header 3.</h3>
</body>
</html>
i.e. aligned <p> element and empty line before <h3>. When I have HTML code style settings
Insert new line before = body, div, p, h1, h2, h3, ...
Don't break if inline content = title, h1, h2, h3 // NO p
then formatting does the following:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
<p>
Line 1.
Line 2.
</p>
<h3>Header 3.</h3>
</body>
</html>
When I add p to "Don't break if inline content" I get the following:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
<p>
Line 1.
Line 2. </p>
<h3>Header 3.</h3>
</body>
</html>
Seems that "Insert new line before" interacts with "Don't break if inline content", but it should not.
Description
Get the HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
<p>
Line 1.
Line 2. </p>
<h3>Header 3.</h3>
</body>
</html>
I would like to apply formatting (Ctrl+Alt+L) to get the following:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
<p>
Line 1.
Line 2.
</p>
<h3>Header 3.</h3>
</body>
</html>
i.e. aligned <p> element and empty line before <h3>. When I have HTML code style settings
Insert new line before = body, div, p, h1, h2, h3, ...
Don't break if inline content = title, h1, h2, h3 // NO p
then formatting does the following:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
<p>
Line 1.
Line 2.
</p>
<h3>Header 3.</h3>
</body>
</html>
When I add p to "Don't break if inline content" I get the following:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
<p>
Line 1.
Line 2. </p>
<h3>Header 3.</h3>
</body>
</html>
Seems that "Insert new line before" interacts with "Don't break if inline content", but it should not.