diff --git a/p2d/parse_polygon_package.py b/p2d/parse_polygon_package.py index cc8e544..57d7400 100644 --- a/p2d/parse_polygon_package.py +++ b/p2d/parse_polygon_package.py @@ -27,8 +27,7 @@ def parse_samples_explanations(notes): exit(1) assert(test_id != -1) assert(test_id not in explanations) - curr = curr[0].upper() + curr[1:] # Capitalize first letter. - explanations[test_id] = curr + explanations[test_id] = curr.capitalize() # Capitalize first letter. curr = '' test_id = -1 elif test_id != -1: @@ -119,6 +118,7 @@ def pol_path(*path): problem['statement']['legend'] = statement_json['legend'] problem['statement']['input'] = statement_json['input'] problem['statement']['output'] = statement_json['output'] + problem['statement']['interaction'] = statement_json['interaction'] problem['statement']['tutorial'] = statement_json['tutorial'] explanations = parse_samples_explanations(statement_json['notes'])