Does YAML allow TAB for indentation?

  • Thread starter Iñaki Baz Castillo
  • Start date
I

Iñaki Baz Castillo

Hi, I'm trying YAML with Ruby and it allows TAB for indentation, but it see=
ms=20
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.


=2D-=20
I=C3=B1aki Baz Castillo
 
M

Marc Heiler

"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 said:
Hi, I'm trying YAML with Ruby and it allows TAB for indentation, but it s= eems
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.

No, it isn't allowed in Ruby YAML too.
 
I

Iñaki Baz Castillo

El S=C3=A1bado, 5 de Abril de 2008, I=C3=B1aki Baz Castillo escribi=C3=B3:
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.
=46ucking VI that converts TAB to spaces XDDD

:wq



=2D-=20
I=C3=B1aki Baz Castillo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top