# Difference between %\> into-%\>

**URL:** <https://www.ruby-forum.com/t/difference-between-into/141740>\
**Category:** Rails\
**Created:** [June 30, 2008, 9:24am UTC](https://www.ruby-forum.com/t/difference-between-into/141740 "2008-06-30T09:24:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lostwarrior](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/a88e57/32.png) [@lostwarrior](https://www.ruby-forum.com/u/lostwarrior)\
**Post date:** [June 30, 2008, 9:24am UTC](https://www.ruby-forum.com/t/difference-between-into/141740/1 "2008-06-30T09:24:06Z")

</div>

Experiment with adding and removing the minus sign at the end of the  
ERb \<%= %\> sequence (i.e., changing %\> into -%\>, and vice versa.  
what will be the difference

---

<div class="post-metadata">

**Author:** ![lostwarrior](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/a88e57/32.png) [@lostwarrior](https://www.ruby-forum.com/u/lostwarrior)\
**Post date:** [June 30, 2008, 11:08am UTC](https://www.ruby-forum.com/t/difference-between-into/141740/2 "2008-06-30T11:08:16Z")

</div>

On Mon, Jun 30, 2008 at 5:24 PM, Lost W.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Experiment with adding and removing the minus sign at the end of the  
> ERb \<%= %\> sequence (i.e., changing %\> into -%\>, and vice versa.  
> what will be the difference

Putting a - sign at the end (like -%\>) means that no new line will be  
inserted into the template in the final output.

For example:

\<%= ‘hello’ -%\> there

Will result in “hello there”

\<%= ‘hello’ %\> there

Will result in: “hello\n there”

–

> **[Mikel Lindsaar](https://lindsaar.net/)**
>
> Internet Home for Mikel Lindsaar

Rails, RSpec, Puppet and Life blog…
