Skip to content

Commit 651d28d

Browse files
authored
Use fixed width in yaml dump - pyyaml issue on on different platforms (#19)
1 parent c7a453f commit 651d28d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

himl/config_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def get_values_from_dir_path(self):
222222
return values
223223

224224
def output_yaml_data(self, data):
225-
return yaml.dump(data, Dumper=ConfigGenerator.yaml_dumper(), default_flow_style=False, width=float("inf"))
225+
return yaml.dump(data, Dumper=ConfigGenerator.yaml_dumper(), default_flow_style=False, width=200)
226226

227227
def yaml_to_json(self, yaml_data):
228228
return json.dumps(yaml.load(yaml_data, Loader=yaml.FullLoader), indent=4)

0 commit comments

Comments
 (0)