Development

Changeset 3772

You must first sign up to be able to contribute.

Changeset 3772

Show
Ignore:
Timestamp:
04/13/07 08:32:32 (6 years ago)
Author:
fabien
Message:

doc: fixed YAML example (closes #1650)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • doc/trunk/book/05-Configuring-Symfony.txt

    r3674 r3772  
    6060Listing 5-3 - Defining Long and Multiline Strings 
    6161 
    62     accomplishment: >           # Folded style, introduced by > 
    63       Mark set a major league   # Each line break is folded to a space 
    64       home run record in 1998.  # Makes YAML more readable 
    65     stats: |                    # Literal style, introduced by | 
    66       65 Home Runs              # All line breaks count 
    67       0.278 Batting Average     # Indentation doesn't appear in the resulting string 
     62    # Folded style, introduced by > 
     63    # Each line break is folded to a space 
     64    # Makes YAML more readable 
     65    accomplishment: > 
     66      Mark set a major league 
     67      home run record in 1998. 
     68 
     69    # Literal style, introduced by | 
     70    # All line breaks count 
     71    # Indentation doesn't appear in the resulting string 
     72    stats: | 
     73      65 Home Runs 
     74      0.278 Batting Average 
    6875 
    6976To define a value as an array, enclose the elements in square brackets or use the expanded syntax with dashes, as shown in Listing 5-4.