It's another Visual Studio 2008 HTML formatting question...I think I have either found a bug in the infamously bad VS HTML formatting, or I'm doing something wrong. Here's what I'm doing:
I remove all client side tags via:
Tools -> Options -> Text Editor -> HTML -> Format -> Tag Specific options
I then add b and span tags:
alt text http://www.xtupload.com/new/thumb-3BB0_49B92330.jpg
I press CTRL+E,CTRL+D and I get these two differing results:
alt text http://www.xtupload.com/new/image-CBF1_49B92330.jpg
The P before the span tag isn't formatted properly
alt text http://www.xtupload.com/new/image-3AB6_49B92330.jpg
The P tag is formatted correctly.
This for a .ASPX extension file.
It looks like it is a bug, and isn't dependent on the tag being SPAN or B.
Add an extra space before the closing P.
<p><b>My title</b></p>
Gets re-formatted as
<p>
<b>My title</b></p>
<p><b>My title</b> </p>
(NB the space after the B) gets reformatted as:
<p>
<b>My title</b>
</p>
And that extra space is removed by VS anyway. Hallelujah my HTML looks beautiful!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With