From e9742f6aae8637801aed134ee7eb383f7132817f Mon Sep 17 00:00:00 2001 From: Bertrand Le Roy Date: Thu, 8 Nov 2012 18:36:01 -0800 Subject: [PATCH] Removing extra $1 after newlines in text field front-end rendering. --HG-- branch : 1.x --- src/Orchard.Web/Core/Common/Views/Fields.Common.Text.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Web/Core/Common/Views/Fields.Common.Text.cshtml b/src/Orchard.Web/Core/Common/Views/Fields.Common.Text.cshtml index 22fcf9007..8fe046850 100644 --- a/src/Orchard.Web/Core/Common/Views/Fields.Common.Text.cshtml +++ b/src/Orchard.Web/Core/Common/Views/Fields.Common.Text.cshtml @@ -4,5 +4,5 @@ } @if (HasText(name) && HasText(Model.Value)) { -

@name: @(new MvcHtmlString(Html.Encode((HtmlString) Model.Value).ReplaceNewLinesWith("
$1")))

+

@name: @(new MvcHtmlString(Html.Encode((HtmlString) Model.Value).ReplaceNewLinesWith("
")))

} \ No newline at end of file