# How use simple format

**URL:** <https://discuss.rubyonrails.org/t/how-use-simple-format/29812>\
**Category:** rubyonrails-talk\
**Created:** [May 26, 2008, 8:57am UTC](https://discuss.rubyonrails.org/t/how-use-simple-format/29812 "2008-05-26T08:57:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [May 26, 2008, 8:57am UTC](https://discuss.rubyonrails.org/t/how-use-simple-format/29812/1 "2008-05-26T08:57:06Z")

</div>

I want to show paragraph breaks appear in the event description just as the user typed them on , how to do in ruby?

---

<div class="post-metadata">

**Author:** ![Phlip](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@Phlip](https://discuss.rubyonrails.org/u/Phlip)\
**Post date:** [May 27, 2008, 12:58am UTC](https://discuss.rubyonrails.org/t/how-use-simple-format/29812/2 "2008-05-27T00:58:12Z")

</div>

> I want to show paragraph breaks appear in the event description just as the user typed them on , how to do in ruby?

\<pre\>\<%= h event.description \>\</pre\>

---

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [May 29, 2008, 6:16am UTC](https://discuss.rubyonrails.org/t/how-use-simple-format/29812/3 "2008-05-29T06:16:42Z")

</div>

Phlip wrote:

> > I want to show paragraph breaks appear in the event description just as the user typed them on , how to do in ruby?
> 
> \<pre\>\<%= h event.description \>\</pre\>

Ruby's simple\_format method is not working for spaces. so how to add and what to add in simple format method code so it also work for spaces?
