github.com/rabbouni145/gg@v0.47.1/docs/content/en/functions/chomp.md (about) 1 --- 2 title: chomp 3 description: Removes any trailing newline characters. 4 godocref: Removes any trailing newline characters. 5 date: 2017-02-01 6 publishdate: 2017-02-01 7 lastmod: 2017-02-01 8 categories: [functions] 9 menu: 10 docs: 11 parent: "functions" 12 keywords: [trim] 13 signature: ["chomp INPUT"] 14 workson: [] 15 hugoversion: 16 relatedfuncs: [truncate] 17 deprecated: false 18 --- 19 20 Useful in a pipeline to remove newlines added by other processing (e.g., [`markdownify`](/functions/markdownify/)). 21 22 ``` 23 {{chomp "<p>Blockhead</p>\n"}} → "<p>Blockhead</p>" 24 ```