Skip to content

Commit

Permalink
escape new line char
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Sep 23, 2024
1 parent 23b327f commit acf6779
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions docs/liquid-filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -1450,8 +1450,7 @@ Wraps text at a given column count. `wrap 80 $text` will wrap the string in `$te
_Implementation_: github.com/Masterminds/sprig/v3.init.func7

## wrapWith
Works as `wrap` but lets you specify the string to wrap with (`wrap` uses `
`). `wrapWith 5 "\t" "Hello world"` will return `hello world` (where the whitespace is an ASCII tab character).
Works as `wrap` but lets you specify the string to wrap with (`wrap` uses `\n`). `wrapWith 5 "\t" "Hello world"` will return `hello world` (where the whitespace is an ASCII tab character).



Expand Down
2 changes: 1 addition & 1 deletion template/liquid_docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,5 @@ var functionDocs = map[string]string{
"values": "",
"without": "Filters items out of a list. It can take more than one filter.",
"wrap": "Wraps text at a given column count. `wrap 80 $text` will wrap the string in `$text` at 80 columns.",
"wrapWith": "Works as `wrap` but lets you specify the string to wrap with (`wrap` uses `\n`). `wrapWith 5 \"\\t\" \"Hello world\"` will return `hello world` (where the whitespace is an ASCII tab character).",
"wrapWith": "Works as `wrap` but lets you specify the string to wrap with (`wrap` uses `\\n`). `wrapWith 5 \"\\t\" \"Hello world\"` will return `hello world` (where the whitespace is an ASCII tab character).",
}

0 comments on commit acf6779

Please sign in to comment.