# Fixture with multiple lines of text as a field

**URL:** <https://www.ruby-forum.com/t/fixture-with-multiple-lines-of-text-as-a-field/51354>\
**Category:** Rails\
**Created:** [December 30, 2005, 3:05am UTC](https://www.ruby-forum.com/t/fixture-with-multiple-lines-of-text-as-a-field/51354 "2005-12-30T03:05:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pergesu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Post date:** [December 30, 2005, 3:05am UTC](https://www.ruby-forum.com/t/fixture-with-multiple-lines-of-text-as-a-field/51354/1 "2005-12-30T03:05:38Z")

</div>

I want to create a fixture that has multiple lines of text as one of  
the fields. Some of the lines start with “text:” Something like:

article:  
subject: Article  
content: This is the content  
something: happens here

How can I do that?

---

<div class="post-metadata">

**Author:** ![pergesu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Post date:** [December 30, 2005, 2:19pm UTC](https://www.ruby-forum.com/t/fixture-with-multiple-lines-of-text-as-a-field/51354/2 "2005-12-30T14:19:09Z")

</div>

Pat M. wrote:

> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

article:  
subject: Article  
content: |  
This is some multi-line text.  
It needs to be consistently indented, but  
other than that, you can do pretty much  
what you want.  
foo: bar

There is an example doc at [http://www.yaml.org/start.html](http://www.yaml.org/start.html).
