Modules: Adding styling to Recipe description display to keep line breaks

Taken from https://github.com/OrchardCMS/Orchard/pull/7940
This commit is contained in:
Pablo Sanchez 2019-08-30 11:22:42 +02:00 committed by Benedek Farkas
parent ac60046468
commit a55cb430e2

View File

@ -29,7 +29,7 @@
<br />
<div>
<h4>@recipe.Name - @Html.ActionLink(T("Execute").Text, "Recipes", "Admin", new { area = "Orchard.Modules", moduleId = descriptor.Id, name = recipe.Name }, new { itemprop = "UnsafeUrl" })</h4>
<p>@recipe.Description</p>
<p style="white-space: pre-line;">@recipe.Description</p>
</div>
}
</div>