summaryrefslogtreecommitdiffstats
path: root/internal/toml-test/tests/valid/string/multiline.toml
blob: 4f2fd008af71add84541b29a7470ac7d20a3940c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# NOTE: this file includes some literal tab characters.

multiline_empty_one = """"""

# A newline immediately following the opening delimiter will be trimmed.
multiline_empty_two = """
"""

# \ at the end of line trims newlines as well; note that last \ is followed by
# two spaces, which are ignored.
multiline_empty_three = """\
    """
multiline_empty_four = """\
   \
   \  
   """

equivalent_one = "The quick brown fox jumps over the lazy dog."
equivalent_two = """
The quick brown \


  fox jumps over \
    the lazy dog."""

equivalent_three = """\
       The quick brown \
       fox jumps over \
       the lazy dog.\
       """

whitespace-after-bs = """\
       The quick brown \
       fox jumps over \   
       the lazy dog.\	
       """

only-ignore-first = """
Here are \
  two
lines of text.
And \

  another
  two.
"""

no-space = """a\
    b"""

# Has tab character.
keep-ws-before = """a   	\
   b"""

escape-bs-1 = """a \\
b"""

escape-bs-2 = """a \\\
b"""

escape-bs-3 = """a \\\\
  b"""