diff --git a/_filters/lstrip.md b/_filters/lstrip.md index 5fc8fd94..3ab4fc0c 100644 --- a/_filters/lstrip.md +++ b/_filters/lstrip.md @@ -1,3 +1,9 @@ --- title: lstrip --- + +Strips all whitespace (tabs, spaces, and newlines) from the left side of a string. + +| Code | Output | +|-------------------------------------------------------:|:-------------------| +| {% raw %}`{{ ' too many spaces ' | lstrip }}`{% endraw %} | `"too many spaces "` | diff --git a/_filters/rstrip.md b/_filters/rstrip.md index 7b9a2dc8..22e18a09 100644 --- a/_filters/rstrip.md +++ b/_filters/rstrip.md @@ -1,3 +1,9 @@ --- title: rstrip --- + +Strips all whitespace (tabs, spaces, and newlines) from the right side of a string. + +| Code | Output | +|-------------------------------------------------------:|:-------------------| +| {% raw %}`{{ ' too many spaces ' | rstrip }}`{% endraw %} | `"too many spaces "` | diff --git a/_filters/strip.md b/_filters/strip.md index ec500aba..758d694a 100644 --- a/_filters/strip.md +++ b/_filters/strip.md @@ -1,3 +1,9 @@ --- title: strip --- + +Strips all whitespace (tabs, spaces, and newlines) from a string. + +| Code | Output | +|-------------------------------------------------------:|:-------------------| +| {% raw %}`{{ ' too many spaces ' | strip }}`{% endraw %} | `"too many spaces"` |