diff --git a/layouts/partials/CorrectPunctuation b/layouts/partials/CorrectPunctuation deleted file mode 100644 index 4671b77feb466f3787cdcf0e56123bf5eb2d14e4..0000000000000000000000000000000000000000 --- a/layouts/partials/CorrectPunctuation +++ /dev/null @@ -1,6 +0,0 @@ -{{ $correct := . }} -{{ $signs := slice ";" ":" "!" "?" }} -{{ range $signs }} - {{ $correct = replace $correct (printf " %s" .) (printf " %s" .) }} -{{ end }} -{{ return $correct }} diff --git a/layouts/partials/PrepareHTML b/layouts/partials/PrepareHTML index 2d3f25ddfb724d20fa61e92c060b353106bed059..ea37d6018eee7bd33217ac4c51fc761d011b2b7c 100644 --- a/layouts/partials/PrepareHTML +++ b/layouts/partials/PrepareHTML @@ -1,10 +1,8 @@ -{{ return -safeHTML ( - chomp ( - partial "CorrectPunctuation" ( - partial "FilterIframeLazy" ( - . - ) +{{ +return + safeHTML ( + partial "FilterIframeLazy" ( + . ) - ) -) }} + ) +}} diff --git a/layouts/partials/PrepareText b/layouts/partials/PrepareText index a4d0f064297d6f5092c821d24ef980f10e6fe540..8944cd99bc9e17b8d91a1c1d71241feb26bbcd34 100644 --- a/layouts/partials/PrepareText +++ b/layouts/partials/PrepareText @@ -1,6 +1,6 @@ -{{ $text := . }} -{{ $text = replace $text "\r\n" "\n" }} -{{ $text = replace $text "\r" "\n" }} -{{ $text = replace $text "\n" "<br/>" }} -{{ $text = $text | safeHTML }} -{{ return $text}} \ No newline at end of file +{{ +return + safeHTML ( + . + ) +}} \ No newline at end of file