From 8c0f182af987e2ed04aa7154da3c61b1568b87b8 Mon Sep 17 00:00:00 2001 From: Engincan VESKE Date: Mon, 22 Nov 2021 19:13:07 +0300 Subject: [PATCH] Cms-Kit: Show the lines on the comments --- .../Shared/Components/Commenting/Default.cshtml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/Default.cshtml b/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/Default.cshtml index 92d02a7cea..ab4bd69b91 100644 --- a/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/Default.cshtml +++ b/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/Default.cshtml @@ -57,7 +57,16 @@ Func GetCommentContentArea(Guid id, string text) => @

- @text + @{ + var lines = text.SplitToLines(); + if (lines.Any()) + { + foreach (var line in lines) + { + @line
+ } + } + }

; }