File: multiline.tml

package info (click to toggle)
libcpan-meta-yaml-perl 0.020-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 412 kB
  • sloc: perl: 1,354; makefile: 2
file content (33 lines) | stat: -rw-r--r-- 524 bytes parent folder | download | duplicates (4)
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
=== basic multiline
# This is just a simple one key hash.
--- yaml
a: |
   ciao
   a tutti
--- json
{"a":"ciao\na tutti\n"}

=== multiline with inner indentation
# This is just a simple one key hash.
--- yaml
a: |
   ciao
         a
   tutti
--- json
{"a":"ciao\n      a\ntutti\n"}

=== two multilines with variable inner indentation
# This is just a simple one key hash.
--- yaml
- |
   ciao
         a
      tutti
- |
      quanti
         voi
      amici
--- json
["ciao\n      a\n   tutti\n","quanti\n   voi\namici\n"]