hugo/docs/content/en/functions/chomp.md
2022-12-02 09:19:23 +01:00

528 B

title toc description date publishdate lastmod categories menu keywords signature workson hugoversion relatedfuncs deprecated
chomp true Removes any trailing newline characters. 2017-02-01 2017-02-01 2017-02-01
functions
docs
parent
functions
trim
chomp INPUT
strings.Chomp INPUT
truncate
false

Useful in a pipeline to remove newlines added by other processing (e.g., markdownify).

{{chomp "<p>Blockhead</p>\n"}} → "<p>Blockhead</p>"