From 6b628c5906ea59dd103d933482d94dd3162278c6 Mon Sep 17 00:00:00 2001 From: Michael Gordeev Date: Tue, 28 Apr 2020 12:33:42 +0300 Subject: [PATCH] Improved editor features for gallery and projects --- MyWebsite/MyWebsite/Views/Gallery/Details.cshtml | 2 +- MyWebsite/MyWebsite/Views/Shared/Projects.cshtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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