Files
hugo/content/functions/chomp.md
T

505 B

title, linktitle, description, godocref, date, publishdate, lastmod, categories, tags, signature, workson, hugoversion, relatedfuncs, deprecated
title linktitle description godocref date publishdate lastmod categories tags signature workson hugoversion relatedfuncs deprecated
chomp chomp Removes any trailing newline characters. 2017-02-01 2017-02-01 2017-02-01
functions
trim
truncate
false

Removes any trailing newline characters. Useful in a pipeline to remove newlines added by other processing (e.g., markdownify).

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