Re: Yaml 1.2 example 8.3 - Incorrect indentation?

Ingy dot Net <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
I think the indentation is fine. It works in libyaml. Your indentation is
another way to do the same thing.

As I understand it, every literal has an indentation level that is either
explicit or implicit. In this example the indentation level is 2. Lines that
contain only whitespace, and less than or equal to the current indentation
level, are simply parsed as a newline.

This example is also equivalent:

|2↓
↓
↓
··literal↓
···↓
↓
··text↓
↓
·#·Comment↓

Cheers, Ingy

2009/11/22 Burt Harris <[email protected]>

> I think example 8.8 may be incorrect.  The line breaks aren't clear, but as
> I currently read it:
>
>  |↓
>  ·↓
>  ··↓
>  ··literal↓
>  ···↓
>  ··↓
>  ··text↓
>  ↓
>  ·#·Comment↓
>
> Should the second line have two spaces of indentation? Like this:
>
>  |↓
>  ··↓
>  ··↓
>  ··literal↓
>  ···↓
>  ··↓
>  ··text↓
>  ↓
>  ·#·Comment↓
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Yaml-core mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/yaml-core
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.