Skip to content

Commit af2922e

Browse files
authored
Don't add new line in yaml dump on long lines (#18)
1 parent 996e343 commit af2922e

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
@@ -219,7 +219,7 @@ def get_values_from_dir_path(self):
219219
return values
220220

221221
def output_yaml_data(self, data):
222-
return yaml.dump(data, Dumper=ConfigGenerator.yaml_dumper(), default_flow_style=False)
222+
return yaml.dump(data, Dumper=ConfigGenerator.yaml_dumper(), default_flow_style=False, width=float("inf"))
223223

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

0 commit comments

Comments
 (0)