On Tue, 9 Dec 2003, Ara.T.Howard wrote:

> Date: Tue, 9 Dec 2003 16:25:47 -0700
> From: Ara.T.Howard <ahoward / ngdc.noaa.gov>
> Reply-To: Ara.T.Howard / noaa.gov
> Newsgroups: comp.lang.ruby
> Subject: yaml load error
> 
> 
> 
> can't figure this one out?
> 
> ~/eg/ruby > cat yaml.rb 
> require 'yaml'
> 
> yaml = <<-yaml
> local_contact_email: [ ] 
> yaml
> 
> p(YAML::load(yaml))
> 
> 
> ~/eg/ruby > ruby yaml.rb
> /data/ruby-1.8.0//lib/ruby/1.8/yaml.rb:39:in `load': parse error on line 1, col -1: `' (ArgumentError)
>         from /data/ruby-1.8.0//lib/ruby/1.8/yaml.rb:39:in `load'
>         from yaml.rb:7

hate to follow up on my own post, but the problem is that the line

> local_contact_email: [ ] 

is actually

  "local_contact_email: [ ]\t"

shouldn't trailing tabs be _ok_ in yaml?  or is this really a broken file
when trailing tabs are present?

-a
-- 

ATTN: please update your address books with address below!

===============================================================================
| EMAIL   :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE   :: 303.497.6469
| ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328
| STP     :: http://www.ngdc.noaa.gov/stp/
| NGDC    :: http://www.ngdc.noaa.gov/
| NESDIS  :: http://www.nesdis.noaa.gov/
| NOAA    :: http://www.noaa.gov/
| US DOC  :: http://www.commerce.gov/
|
| The difference between art and science is that science is what we
| understand well enough to explain to a computer.  
| Art is everything else.  
|   -- Donald Knuth, "Discover"
|
| /bin/sh -c 'for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done' 
===============================================================================