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:
1
alt text http://www.xtupload.com/new/image-CBF1_49B92330.jpg
The P before the span tag isn't formatted properly
2
alt text http://www.xtupload.com/new/image-3AB6_49B92330.jpg
The P tag is formatted correctly.
This for a .ASPX extension file.
Best Answer
It looks like it is a bug, and isn't dependent on the tag being SPAN or B.
The work around I found
Add an extra space before the closing P.
How it fails
Gets re-formatted as
How to get it to work
(NB the space after the B) gets reformatted as:
And that extra space is removed by VS anyway. Hallelujah my HTML looks beautiful!