Files
hugo/content/functions/chomp.md
T
2017-03-27 16:32:31 -05:00

567 B

title, linktitle, description, godocref, date, publishdate, lastmod, categories, tags, ns, signature, workson, hugoversion, relatedfuncs, deprecated
title linktitle description godocref date publishdate lastmod categories tags ns signature workson hugoversion relatedfuncs deprecated
chomp chomp Removes any trailing newline characters. Removes any trailing newline characters. 2017-02-01 2017-02-01 2017-02-01
functions
trim
chomp INPUT
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>"