Yaml argument error due to indention on load_documents

T

T. Onoma

the following produces an error, but it will work if the two text lines are
not indented. shouldn't '|' allow it to work regardless? (BTW: I'm using
load_documents, not load)


--- |

this is a test
of this problem

---

text:
background-color: blue
insert_table:
font-size: 6pt
general:
background: yellow



Here's the error:

/usr/lib/ruby/1.8/yaml.rb:165:in `load_documents': parse error on line 5, col
0: `---' (ArgumentError)
from /usr/lib/ruby/1.8/yaml.rb:165:in `each_document'
from /usr/lib/ruby/1.8/yaml.rb:180:in `load_documents'
 

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

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,408
Latest member
AlenaRay88

Latest Threads

Top