From 560d219c269bbf291a4f78e8ef3ffeb0d02ffdef Mon Sep 17 00:00:00 2001 From: vallentin Date: Wed, 6 Jan 2021 22:57:10 +0100 Subject: Added urlencode filter to book --- askama_shared/src/filters/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'askama_shared/src') diff --git a/askama_shared/src/filters/mod.rs b/askama_shared/src/filters/mod.rs index 6838d57..58bcc47 100644 --- a/askama_shared/src/filters/mod.rs +++ b/askama_shared/src/filters/mod.rs @@ -122,7 +122,7 @@ pub fn filesizeformat(b: &B) -> Result { } #[cfg(feature = "percent-encoding")] -/// Percent-encodes the argument for safe use in URI; does not encode `/` +/// Percent-encodes the argument for safe use in URI; does not encode `/`. /// /// This should be safe for all parts of URI (paths segments, query keys, query /// values). In the rare case that the server can't deal with forward slashes in @@ -134,8 +134,8 @@ pub fn filesizeformat(b: &B) -> Result { /// with the exception of `/`. /// /// ```none,ignore -/// Station -/// Page +/// Station +/// Page /// ``` /// /// To encode `/` as well, see [`urlencode_strict`](./fn.urlencode_strict.html). @@ -147,7 +147,7 @@ pub fn urlencode(s: T) -> Result { } #[cfg(feature = "percent-encoding")] -/// Percent-encodes the argument for safe use in URI; encodes `/` +/// Percent-encodes the argument for safe use in URI; encodes `/`. /// /// Use this filter for encoding query keys and values in the rare case that /// the server can't process them unencoded. @@ -157,7 +157,7 @@ pub fn urlencode(s: T) -> Result { /// as specified by [RFC3986](https://tools.ietf.org/html/rfc3986#section-2.3). /// /// ```none,ignore -/// Page +/// Page /// ``` /// /// If you want to preserve `/`, see [`urlencode`](./fn.urlencode.html). -- cgit