When I try to set this multiline string:
tomato set foo 'this\
is\
a\
multiline\
string' "file.toml"
tomato generates this TOML:
foo = '''
this\
is\
a\
multiline\
string'''
If I skip the backslashes it generates """ correctly, but for the value to be correct inside ''' quotes the backslash would need to be escaped, ie.
foo = '''
this\\
is\\
a\\
multiline\\
string'''
Somewhere the logic of whether this is a literal string or not seems to go wrong
When I try to set this multiline string:
tomatogenerates this TOML:If I skip the backslashes it generates
"""correctly, but for the value to be correct inside'''quotes the backslash would need to be escaped, ie.Somewhere the logic of whether this is a literal string or not seems to go wrong