Yes, you are right, this is a bug in example 8.2. It should read "\t\ndetected" instead of "\t detected". Nice catch!

I really should release a new patch version with the errata that has collected...


    Oren Ben-Kiki

On Thu, Mar 3, 2011 at 11:03 AM, Jesse Beder <> wrote:
Compare "Example 6.7. Block Folding" with "Example 8.2. Block
Indentation Indicator":

In Example 6.7, the tab is viewed as "content space", which means the
newlines on each side of it are kept.
In Example 8.2, it appears that the tab is just viewed as content, so
the newline after it is folded to a space.

I think Example 8.2 is incorrect. Libyaml/pyyaml agrees with me:

>>> yaml.load('- >\n \t\n foo')     # Example 8.2 claims we'll get ['\t foo']
>>> yaml.load('- >\n t\n foo')      # like we would here
['t foo']


Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
Yaml-core mailing list