aspnet / Razor

[Archived] Parser and code generator for CSHTML files used in view pages for MVC web apps. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
883 stars 225 forks source link

Functions block statements get extra newline #2410

Closed NTaylorMullen closed 6 years ago

NTaylorMullen commented 6 years ago

This is like https://github.com/aspnet/Razor/issues/2297 but for functions. The fix for #2297 was supposed to work for C# but it looks like content that's extra indented (by default functions) result in incorrect behavior. We need to be more restrictive in where our smart indenter applies.

image

NTaylorMullen commented 6 years ago

41fad8a33a3e02bd53f01c58a96bc87c5711a32f