summaryrefslogtreecommitdiffstats
path: root/content/en/functions/chomp.md
diff options
context:
space:
mode:
Diffstat (limited to 'content/en/functions/chomp.md')
-rw-r--r--content/en/functions/chomp.md12
1 files changed, 3 insertions, 9 deletions
diff --git a/content/en/functions/chomp.md b/content/en/functions/chomp.md
index 3e61c8db5..861e7ecc4 100644
--- a/content/en/functions/chomp.md
+++ b/content/en/functions/chomp.md
@@ -2,25 +2,19 @@
title: chomp
toc: true
description: Removes any trailing newline characters.
-date: 2017-02-01
-publishdate: 2017-02-01
-lastmod: 2017-02-01
categories: [functions]
menu:
docs:
- parent: "functions"
+ parent: functions
keywords: [trim]
signature:
- "chomp INPUT"
- "strings.Chomp INPUT"
-workson: []
-hugoversion:
relatedfuncs: [truncate]
-deprecated: false
---
Useful in a pipeline to remove newlines added by other processing (e.g., [`markdownify`](/functions/markdownify/)).
-```
-{{chomp "<p>Blockhead</p>\n"}} → "<p>Blockhead</p>"
+```go-html-template
+{{ chomp "<p>Blockhead</p>\n" }} → "<p>Blockhead</p>"
```