in cfn_flip/yaml_dumper.py [0:0]
def string_representer(dumper, value):
if sum(1 for nl in value if nl in ('\n', '\r')) >= STR_MAX_LINES_QUOTED:
return dumper.represent_scalar(TAG_STR, value, style="|")
if len(value) >= STR_MAX_LENGTH_QUOTED and '\n' not in value:
return dumper.represent_scalar(TAG_STR, value, style=">")
if value.startswith("0"):
return dumper.represent_scalar(TAG_STR, value, style="'")
return dumper.represent_scalar(TAG_STR, value)