I'm trying to output a comma seperated list of values like so accountancy, office, IT but I'm getting anextra space between the value and the comma (i.e. accountancy , office , IT) when I have nicely formatted code.
This is my code, is there any way to keep it nicely formatted but not have an extra space being added.
<a href="@landing.Url?tag=@t">@t</a> if (i < tags.Count()) { <text>, </text> }
Extra space in razor macro
I'm trying to output a comma seperated list of values like so accountancy, office, IT but I'm getting an extra space between the value and the comma (i.e. accountancy , office , IT) when I have nicely formatted code.
This is my code, is there any way to keep it nicely formatted but not have an extra space being added.
I want the space after the comma, just not before it. The only way to do that seems to be by scrunching the code up like this
Here's a couple of ways to do it http://stackoverflow.com/questions/4282572/asp-net-mvc-razor-extra-space
is working on a reply...