Closed mlershov closed 6 years ago
The easier fix here is probably to just look for \n
- The .Trim()
in the model class parsing should remove the \r
.
int at = template.IndexOf("@model ");
int at2 = template.IndexOf("\n", at);
var line = template.Substring(at, at2 - at);
var modelClass = line.Replace("@model ", "").Trim();
Hello! There is a error when processing a template with LF line separator (\n instead of \r\n ).
Method RazorEngine.FixupTemplate can be changed: