Skip to content

Commit 07ead6f

Browse files
committed
Stripping extra whitespace from the preamble
1 parent a22ccbb commit 07ead6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

json_to_models/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def set_args(
240240

241241
self.dict_keys_regex = [re.compile(rf"^{r}$") for r in dict_keys_regex] if dict_keys_regex else ()
242242
self.dict_keys_fields = dict_keys_fields or ()
243-
self.preamble = preamble or None
243+
self.preamble = preamble.strip() or None
244244
self.initialized = True
245245

246246
@classmethod

0 commit comments

Comments
 (0)