diff --git a/MyWebsite/MyWebsite/Views/Gallery/Details.cshtml b/MyWebsite/MyWebsite/Views/Gallery/Details.cshtml index 0902888..06ae9b0 100644 --- a/MyWebsite/MyWebsite/Views/Gallery/Details.cshtml +++ b/MyWebsite/MyWebsite/Views/Gallery/Details.cshtml @@ -25,7 +25,7 @@

@Model.Current?.Title

@Localizer["Creation date"]: @Model.Current?.CreationDate.ToShortDateString()

- @Html.Raw(Model.Current?.Description) + @Html.Raw(Model.Current?.Description?.Replace("\n", "
"))

diff --git a/MyWebsite/MyWebsite/Views/Shared/Projects.cshtml b/MyWebsite/MyWebsite/Views/Shared/Projects.cshtml index e3054a0..8f96613 100644 --- a/MyWebsite/MyWebsite/Views/Shared/Projects.cshtml +++ b/MyWebsite/MyWebsite/Views/Shared/Projects.cshtml @@ -20,7 +20,7 @@

@project.Title

- @Html.Raw(project.Description) + @Html.Raw(project.Description?.Replace("\n", "
"))

@project.LinkCaption