How to prevent YAML to dump long line without new line
How to prevent YAML to dump long line without new line Question: While dumping/serializing data having long lines in input, pyyaml adds extra indentation with new line – which is annoying, how can we avoid this conversion in two lines / multiple lines ? e.g. In [1]: x = "-c /home/user/test/test2/test23/tet/2s/test1/stest/longdirectory1/directory2/ –optnion12 –verbose" In [2]: …
Total answers: 1