Reputation: 6265
I've got my div tags set to insert line breaks "Before opening, within, and after closing" but I'm not getting the line break after the content.
I'm getting this:
<div>
content</div>
But I want this:
<div>
content
</div>
Again, I have the correct selection made in the options. It even shows the correct way in the preview box. If I change the selection to no line breaks, it formats correctly.
Is this an issue for anyone else?
Note, this is in aspx/c pages.
Upvotes: 3
Views: 1301
Reputation: 191
The reason it doesn't separate the closing div element is because adding a space there would potentially change the whitespace semantics of the rendering.
Have a look at the last comment made by scott gutherie : http://weblogs.asp.net/scottgu/archive/2006/07/07/Tip_2F00_Trick_3A00_-Custom-formatting-HTML-in-Visual-Web-Developer-and-Visual-Studio-2005.aspx
Upvotes: 1