From 99db066e2ae1207445f7de31a1bb6b27c9b92698 Mon Sep 17 00:00:00 2001 From: Garen Torikian Date: Fri, 20 Mar 2015 16:23:38 -0700 Subject: [PATCH] Add docs for the `strip` commands --- _filters/lstrip.md | 6 ++++++ _filters/rstrip.md | 6 ++++++ _filters/strip.md | 6 ++++++ 3 files changed, 18 insertions(+) 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"` |