3 ms·
Just use 'literal strings' instead of "basic strings". TOML has two types of strings, each of which can be single line or multi line [0]. Basic strings allow e
by frosted-flakes 8y ago
Just use 'literal strings' instead of "basic strings".
TOML has two types of strings, each of which can be single line or multi line [0]. Basic strings allow escape characters, while literal strings do not (so there's no way to represent an apostrophe in a single line literal string). Multi line strings are like Markdown's code blocks:
"""
This is a multi-
line basic string.
C:\\Program Files\\stuff
"""
'''
This is a multi-
line literal string.
C:\Program Files\stuff
'''
[0] https://github.com/toml-lang/toml/blob/master/README.md#string https://github.com/toml-lang/toml/blob/master/README.md#stri...
- justinclift 8y agoThanks heaps, that looks like exactly the right solution. :)