Skip to content

Commit 51f0d15

Browse files
authored
Merge pull request #285 from transifex/TX-14133-include-empty-keys-json-format
Revert skip of empty strings for json formats
2 parents 6444286 + 3bb342d commit 51f0d15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openformats/formats/json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def _insert_item(self, value, value_position, is_real_stringset):
258258
at_least_one = False
259259

260260
if isinstance(value, (six.binary_type, six.text_type)):
261-
if value != '':
261+
if value.strip():
262262
string = self._get_next_string()
263263
string_exists = string is not None
264264

0 commit comments

Comments
 (0)