Files
hugo/content/functions/chomp.md
T
Bud Parr 7fd64f19c8 Merge bp/theme-design branch containing Bud Parr's new design
It's a beautiful thing. A thousand thanks, Bud.

See PR rdwatters/hugo-docs-concept#118
2017-05-26 14:25:22 -05:00

605 B

title, linktitle, description, godocref, date, publishdate, lastmod, categories, menu, tags, ns, signature, workson, hugoversion, relatedfuncs, deprecated
title linktitle description godocref date publishdate lastmod categories menu 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
docs
parent
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>"