diff options
author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2022-04-21 15:45:29 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2022-04-26 10:15:34 +0200 |
commit | 409e913f34253bfae9d841e150f8013bc15844dc (patch) | |
tree | 974024a133ccd3590413ee2fcc1f82b95423472e /askama_shared/src/lib.rs | |
parent | e54039162ab71e74345055f5000b2689627e8f03 (diff) | |
download | askama-409e913f34253bfae9d841e150f8013bc15844dc.tar.gz askama-409e913f34253bfae9d841e150f8013bc15844dc.tar.bz2 askama-409e913f34253bfae9d841e150f8013bc15844dc.zip |
Add WhitespaceHandling::Minimize
Diffstat (limited to '')
-rw-r--r-- | askama_shared/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs index 874be9d..3e87242 100644 --- a/askama_shared/src/lib.rs +++ b/askama_shared/src/lib.rs @@ -314,6 +314,10 @@ pub(crate) enum WhitespaceHandling { Preserve, /// It'll remove all the whitespace characters before and after the jinja block. Suppress, + /// It'll remove all the whitespace characters except one before and after the jinja blocks. + /// If there is a newline character, the preserved character in the trimmed characters, it will + /// the one preserved. + Minimize, } impl Default for WhitespaceHandling { |