Does YAML allow TAB for indentation?

Hi, I’m trying YAML with Ruby and it allows TAB for indentation, but it
seems
that it shouldn’t be allowed (at least Wikipedia says that).

Is then TAB allowed or not for indentation in YAML format?
Maybe Ruby YAML allows it but it shouldn’t do it?

Thanks a lot.

“Is then TAB allowed or not for indentation in YAML format?
Maybe Ruby YAML allows it but it shouldn’t do it?”

Cant give a definite answer on it but If i need to write rather freely
in yaml I normally do:

entry: |
"some really long
string coming here… describing something etc… "

2008/4/5, Iñaki Baz C. [email protected]:

Iñaki Baz C.

No, it isn’t allowed in Ruby YAML too.

El Sábado, 5 de Abril de 2008, Iñaki Baz C. escribió:

Hi, I’m trying YAML with Ruby and it allows TAB for indentation, but it
seems that it shouldn’t be allowed (at least Wikipedia says that).

Sorry, my mistake. Ruby YAML doesn’t allow TAB for indentation.
Fucking VI that converts TAB to spaces XDDD

:wq

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs