We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 191adf0 + e93585b commit 5271f81Copy full SHA for 5271f81
helpers.py
@@ -493,11 +493,12 @@ def tsv_to_json(tsv_string, project_id):
493
schema = schema_record["schema"]
494
495
lines = tsv_string.strip().split("\n")
496
- headers = lines[0].split("\t")
+ headers = [h.strip().replace('\r', '') for h in lines[0].split("\t")]
497
json_list = []
498
499
for line in lines[1:]:
500
values = line.split("\t")
501
+ values = [v.strip().replace('\r', '') for v in values]
502
503
# Process each value according to its schema definition
504
for i in range(min(len(values), len(headers))):
0 commit comments