Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

@page with an @model is overly sensitive to whitespace. #5799

Closed
NTaylorMullen opened this issue Feb 14, 2017 · 4 comments
Closed

@page with an @model is overly sensitive to whitespace. #5799

NTaylorMullen opened this issue Feb 14, 2017 · 4 comments

Comments

@NTaylorMullen
Copy link
Contributor

This is probably a Razor issue but the problem is showing itself through MVC.

This works:

@page
@model WebApplication1.IndexModel

<p>This is from Razor: @Model.Message</p>

This doesn't work:

@page

@model WebApplication1.IndexModel

<p>This is from Razor: @Model.Message</p>

image

@rynowak
Copy link
Member

rynowak commented Feb 14, 2017

Isn't this almost certainly a parsing issue?

@NTaylorMullen
Copy link
Contributor Author

This is probably a Razor issue but the problem is showing itself through MVC.

@Eilon
Copy link
Member

Eilon commented Mar 13, 2017

@NTaylorMullen / @ryanbrandenburg is this still a bug? Or already fixed?

@pranavkm
Copy link
Contributor

The correct fix for this would be #5475. We would be duplicating code in Mvc until that happens.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants