Getting Styles.Render() to preserve indentation from Razor template?

Ariana

New Member
I'm slightly obsessive about the readability (and hence indentation) of all markup.When I call \[code\]@Styles.Render("~/content/css")\[/code\] in an ASP.NET MVC4 project, only the first line maintains indentation from my Razor template. Here is the output:\[code\] <link href="http://stackoverflow.com/Content/css/ie.css" rel="stylesheet"/><link href="http://stackoverflow.com/Content/css/1140.css" rel="stylesheet"/><link href="http://stackoverflow.com/Content/css/screen.css" rel="stylesheet"/><link href="http://stackoverflow.com/Content/css/compatibility.css" rel="stylesheet"/>\[/code\]I would prefer all generated markup have the same indentation as the \[code\]@Styles.Render()\[/code\] call. Is this easily done? If so, how?
 
Back
Top