# How use simple format

**URL:** <https://www.ruby-forum.com/t/how-use-simple-format/138644>\
**Category:** Rails\
**Created:** [May 26, 2008, 10:57am UTC](https://www.ruby-forum.com/t/how-use-simple-format/138644 "2008-05-26T10:57:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunfish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/96bed5/32.png) [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Post date:** [May 26, 2008, 10:57am UTC](https://www.ruby-forum.com/t/how-use-simple-format/138644/1 "2008-05-26T10: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:** ![sunfish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/96bed5/32.png) [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Post date:** [May 27, 2008, 3:00am UTC](https://www.ruby-forum.com/t/how-use-simple-format/138644/2 "2008-05-27T03:00:42Z")

</div>

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

```
<%= h event.description >
```

---

<div class="post-metadata">

**Author:** ![sunfish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/96bed5/32.png) [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Post date:** [May 29, 2008, 8:16am UTC](https://www.ruby-forum.com/t/how-use-simple-format/138644/3 "2008-05-29T08: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?
> 
> ```
> <%= h event.description >
> ```

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?
