$26 GRAYBYTE WORDPRESS FILE MANAGER $68

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/php54/usr/share/pear/test/Yaml/Symfony/Component/Yaml/Tests/Fixtures/

HOME
Current File : /opt/alt/php54/usr/share/pear/test/Yaml/Symfony/Component/Yaml/Tests/Fixtures//YtsFoldedScalars.yml
--- %YAML:1.0
test: Single ending newline
brief: >
    A pipe character, followed by an indented
    block of text is treated as a literal
    block, in which newlines are preserved
    throughout the block, including the final
    newline.
yaml: |
    ---
    this: |
        Foo
        Bar
php: |
    array('this' => "Foo\nBar\n")
---
test: The '+' indicator
brief: >
    The '+' indicator says to keep newlines at the end of text
    blocks.
yaml: |
    normal: |
      extra new lines not kept

    preserving: |+
      extra new lines are kept


    dummy: value
php: |
    array(
        'normal' => "extra new lines not kept\n",
        'preserving' => "extra new lines are kept\n\n\n",
        'dummy' => 'value'
    )
---
test: Three trailing newlines in literals
brief: >
    To give you more control over how space
    is preserved in text blocks, YAML has
    the keep '+' and chomp '-' indicators.
    The keep indicator will preserve all
    ending newlines, while the chomp indicator
    will strip all ending newlines.
yaml: |
    clipped: |
        This has one newline.



    same as "clipped" above: "This has one newline.\n"

    stripped: |-
        This has no newline.



    same as "stripped" above: "This has no newline."

    kept: |+
        This has four newlines.



    same as "kept" above: "This has four newlines.\n\n\n\n"
php: |
    array(
      'clipped' => "This has one newline.\n",
      'same as "clipped" above' => "This has one newline.\n",
      'stripped' => 'This has no newline.',
      'same as "stripped" above' => 'This has no newline.',
      'kept' => "This has four newlines.\n\n\n\n",
      'same as "kept" above' => "This has four newlines.\n\n\n\n"
    )
---
test: Extra trailing newlines with spaces
todo: true
brief: >
    Normally, only a single newline is kept
    from the end of a literal block, unless the
    keep '+' character is used in combination
    with the pipe.  The following example
    will preserve all ending whitespace
    since the last line of both literal blocks
    contains spaces which extend past the indentation
    level.
yaml: |
    ---
    this: |
        Foo


    kept: |+
        Foo


php: |
    array('this' => "Foo\n\n  \n",
      'kept' => "Foo\n\n  \n" )

---
test: Folded Block in a Sequence
brief: >
    A greater-then character, followed by an indented
    block of text is treated as a folded block, in
    which lines of text separated by a single newline
    are concatenated as a single line.
yaml: |
    ---
    - apple
    - banana
    - >
        can't you see
        the beauty of yaml?
        hmm
    - dog
php: |
    array(
        'apple',
        'banana',
        "can't you see the beauty of yaml? hmm\n",
        'dog'
    )
---
test: Folded Block as a Mapping Value
brief: >
    Both literal and folded blocks can be
    used in collections, as values in a
    sequence or a mapping.
yaml: |
    ---
    quote: >
        Mark McGwire's
        year was crippled
        by a knee injury.
    source: espn
php: |
    array(
        'quote' => "Mark McGwire's year was crippled by a knee injury.\n",
        'source' => 'espn'
    )
---
test: Three trailing newlines in folded blocks
brief: >
    The keep and chomp indicators can also
    be applied to folded blocks.
yaml: |
    clipped: >
        This has one newline.



    same as "clipped" above: "This has one newline.\n"

    stripped: >-
        This has no newline.



    same as "stripped" above: "This has no newline."

    kept: >+
        This has four newlines.



    same as "kept" above: "This has four newlines.\n\n\n\n"
php: |
    array(
      'clipped' => "This has one newline.\n",
      'same as "clipped" above' => "This has one newline.\n",
      'stripped' => 'This has no newline.',
      'same as "stripped" above' => 'This has no newline.',
      'kept' => "This has four newlines.\n\n\n\n",
      'same as "kept" above' => "This has four newlines.\n\n\n\n"
    )


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.54 PM
root / root
0755
YtsAnchorAlias.yml
0.839 KB
18 Dec 2019 11.22 AM
root / root
0644
YtsBasicTests.yml
3.738 KB
18 Dec 2019 11.22 AM
root / root
0644
YtsBlockMapping.yml
0.897 KB
18 Dec 2019 11.22 AM
root / root
0644
YtsDocumentSeparator.yml
1.494 KB
18 Dec 2019 11.22 AM
root / root
0644
YtsErrorTests.yml
0.61 KB
18 Dec 2019 11.22 AM
root / root
0644
YtsFlowCollections.yml
1.586 KB
18 Dec 2019 11.22 AM
root / root
0644
YtsFoldedScalars.yml
3.869 KB
18 Dec 2019 11.22 AM
root / root
0644
YtsNullsAndEmpties.yml
0.667 KB
18 Dec 2019 11.22 AM
root / root
0644
YtsSpecificationExamples.yml
40.548 KB
18 Dec 2019 11.22 AM
root / root
0644
YtsTypeTransfers.yml
6.723 KB
18 Dec 2019 11.22 AM
root / root
0644
embededPhp.yml
0.03 KB
18 Dec 2019 11.22 AM
root / root
0644
escapedCharacters.yml
1.989 KB
18 Dec 2019 11.22 AM
root / root
0644
index.yml
0.305 KB
18 Dec 2019 11.22 AM
root / root
0644
sfComments.yml
1.333 KB
18 Dec 2019 11.22 AM
root / root
0644
sfCompact.yml
2.833 KB
18 Dec 2019 11.22 AM
root / root
0644
sfMergeKey.yml
1.072 KB
18 Dec 2019 11.22 AM
root / root
0644
sfObjects.yml
0.277 KB
18 Dec 2019 11.22 AM
root / root
0644
sfQuotes.yml
0.724 KB
18 Dec 2019 11.22 AM
root / root
0644
sfTests.yml
2.241 KB
18 Dec 2019 11.22 AM
root / root
0644
unindentedCollections.yml
1.294 KB
18 Dec 2019 11.22 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF