Carriage Leaf Returns

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I am using vs2010 and have written some xsl files.
I like to format the document using the Ctrl K+D key command to make it more readable.
But when I do this some of my attributes end up being translated with carriage leaf return characters.
example xsl attribute
<pre style="background:white; color:black; font-family:Consolas <span style="color:blue <<span style="color:#2b91af xsl:attribute<span style="color:blue <span style="color:red name<span style="color:blue ="<span style="color:blue href"<span style="color:blue >
JavaScript:ReOrder(<span style="color:blue <<span style="color:#2b91af xsl:value-of<span style="color:blue <span style="color:red select<span style="color:blue ="<span style="color:blue $ColumnName"<span style="color:blue />,)
<span style="color:blue </<span style="color:#2b91af xsl:attribute<span style="color:blue >[/code]
<span style="font-size:small <span lang="EN-GB
Translates to

<span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small href<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small ="&#xD;&#xA; JavaScript:ReOrder(ItemId,)&#xD;&#xA;
"
I dont seem able to stop this using the settings in VS2010 and I am keen to keep the document readable for my colleagues.
Any solutions will be greatly appreciated.

Thanks
<span style="color:#0000ff; font-size:small

View the full article
 
Back
Top