Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/buildstream/_yaml.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@ yaml.RoundTripConstructor.add_constructor(u'tag:yaml.org,2002:timestamp',
def prepare_roundtrip_yaml():
yml = yaml.YAML()
yml.preserve_quotes=True
# defaults to 80 if we don't set it
yml.width=9999

# For each of YAML 1.1 and 1.2, force everything to be a plain string

Expand Down
2 changes: 2 additions & 0 deletions tests/internals/yaml/roundtrip-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,7 @@ nullcheck: null

timestamp: 2019-03-14

long-string: Sometimes very long strings get truncated by ruamel-yaml because the default width is set to 80.

# That is all

Loading