aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src/parser.rs
diff options
context:
space:
mode:
authorLibravatar Guillaume Gomez <guillaume1.gomez@gmail.com>2022-04-07 16:51:09 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2022-04-21 10:08:42 +0200
commitf447a2a8d20b5cd6995b5c33260db23d04716f17 (patch)
tree12a7db258519f97a0561450c0cfabc3d4ff7738a /askama_shared/src/parser.rs
parentfc779e22c3bfa0e94df208a88a361b99e28a9129 (diff)
downloadaskama-f447a2a8d20b5cd6995b5c33260db23d04716f17.tar.gz
askama-f447a2a8d20b5cd6995b5c33260db23d04716f17.tar.bz2
askama-f447a2a8d20b5cd6995b5c33260db23d04716f17.zip
Add suppress_whitespace config option
Diffstat (limited to 'askama_shared/src/parser.rs')
-rw-r--r--askama_shared/src/parser.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/askama_shared/src/parser.rs b/askama_shared/src/parser.rs
index 2a7f49f..eeca326 100644
--- a/askama_shared/src/parser.rs
+++ b/askama_shared/src/parser.rs
@@ -129,6 +129,9 @@ pub(crate) enum Target<'a> {
Path(Vec<&'a str>),
}
+/// First field is "minus sign was used on the left part of the item".
+///
+/// Second field is "minus/plus sign was used on the right part of the item".
#[derive(Clone, Copy, Debug, PartialEq)]
pub(crate) struct Ws(pub(crate) bool, pub(crate) bool);