fix: do not strip string content when preparing lazy data

This commit is contained in:
debugtalk
2019-12-26 15:41:25 +08:00
parent 2c4fce1e7c
commit 4918d975bf
2 changed files with 1 additions and 1 deletions

View File

@@ -10,6 +10,7 @@
- fix: display validators in report when validate raised exception
- fix: eval validator python script before validating
- fix: do not strip string content when preparing lazy data
## 2.4.8 (2019-12-25)

View File

@@ -776,7 +776,6 @@ def prepare_lazy_data(content, functions_mapping=None, check_variables_set=None,
functions_mapping = functions_mapping or {}
check_variables_set = check_variables_set or set()
content = content.strip()
content = LazyString(content, functions_mapping, check_variables_set, cached)
return content