diff --git a/docs/liquid-filters.md b/docs/liquid-filters.md index 8810b59..e4cf370 100644 --- a/docs/liquid-filters.md +++ b/docs/liquid-filters.md @@ -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). diff --git a/template/liquid_docs.go b/template/liquid_docs.go index c0ea6e0..6760ddf 100644 --- a/template/liquid_docs.go +++ b/template/liquid_docs.go @@ -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).", }