summaryrefslogtreecommitdiff
path: root/src/macro_processor
diff options
context:
space:
mode:
Diffstat (limited to 'src/macro_processor')
-rw-r--r--src/macro_processor/macro_processor.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/macro_processor/macro_processor.rs b/src/macro_processor/macro_processor.rs
index b36783b..866fbdd 100644
--- a/src/macro_processor/macro_processor.rs
+++ b/src/macro_processor/macro_processor.rs
@@ -489,6 +489,11 @@ impl MacroProcessor {
return Ok(out);
};
+ // Strip leading whitespace from arguments
+ for arg in &mut *args {
+ *arg = arg.trim().to_string();
+ }
+
// Log macro invokation
// The fact that we are here, does not ensure that the macro is actually expanded into
// something useful, just that it exists, and was invoked