Re: leading tabs in block scalar lines

Jesse Beder <beder-d0mtIEKrxfl4piUD7e9S/[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
Great! Two more examples I just found:

Example 8.5:

I think the value for "keep" should be "# text\n\n". Not 100% sure
about this, but this is what libyaml/pyyaml and ypaste give, and fits
the description under "Keep":

"... the final line break and any trailing empty lines are considered
to be part of the scalar's content."

Example 8.21:

Both values should be "value\n" (with a newline) (for the second one,
that's assuming the file ends in a newline).

Thanks,
Jesse

On Thu, Mar 3, 2011 at 9:16 PM, Oren Ben-Kiki <[email protected]> wrote:
> 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...
> Thanks,
>     Oren Ben-Kiki
> On Thu, Mar 3, 2011 at 11:03 AM, Jesse Beder <beder-d0mtIEKrxfl4piUD7e9S/[email protected]> 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']
>> ['\t\nfoo']
>> >>> yaml.load('- >\n t\n foo')      # like we would here
>> ['t foo']
>>
>> Thanks,
>> Jesse
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>> insights. http://p.sf.net/sfu/splunk-dev2dev
>> _______________________________________________
>> Yaml-core mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/yaml-core
>
>

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
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.