Files
hugoDocs/content/functions/chomp.md
T
Bjørn Erik Pedersen 4e0bca2b1e Remove the needsexamples construct
We need to rework the whole template func docs and, while a good idea, this does not fit into that.
2017-07-16 15:13:35 +02:00

602 B

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