# Textilize with --- (3 dashes) removes text

**URL:** <https://www.ruby-forum.com/t/textilize-with-3-dashes-removes-text/150271>\
**Category:** Rails\
**Created:** [October 6, 2008, 7:10pm UTC](https://www.ruby-forum.com/t/textilize-with-3-dashes-removes-text/150271 "2008-10-06T19:10:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ce7236/32.png) [@jan](https://www.ruby-forum.com/u/jan)\
**Post date:** [October 6, 2008, 7:10pm UTC](https://www.ruby-forum.com/t/textilize-with-3-dashes-removes-text/150271/1 "2008-10-06T19:10:21Z")

</div>

Hi,

using — (3 dashes) at the end of a string that is textilized,  
results in a single hr tag without any text. This seems weird to me.  
Am I overlooking something?

> > av = ActionView::Base.new  
> > av.textilize(“sometext —”)  
> > =\> “
> > 
> > * * *
> > ”

Cheers,  
Jan

---

<div class="post-metadata">

**Author:** ![jan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ce7236/32.png) [@jan](https://www.ruby-forum.com/u/jan)\
**Post date:** [October 7, 2008, 1:31am UTC](https://www.ruby-forum.com/t/textilize-with-3-dashes-removes-text/150271/2 "2008-10-07T01:31:36Z")

</div>

What vesion of RedCloth do you have installed?

I get the following…

> > x = RedCloth.new( ‘foobar —’ )  
> > =\> “foobar —”  
> > x.to\_html  
> > =\> “
> > 
> > foobar ~~-~~
> > 
> > ”

On Mon, Oct 6, 2008 at 10:02 AM, jan [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Cheers,  
> Jan
> 
> >

–  
Robby R.  
Chief Evangelist, Partner

PLANET ARGON, LLC  
design // development // hosting

> **[Planet Argon](https://www.planetargon.com/)**
>
> Planet Argon is a Ruby on Rails development agency specializing in maintenance and support for existing Rails apps. Based in Portland, OR, Planet Argon has been a member of the Rails community since 2004.

[http://www.robbyonrails.com/](http://www.robbyonrails.com/)  
aim: planetargon

+1 503 445 2457  
+1 877 55 ARGON [toll free]  
+1 815 642 4068 [fax]

---

<div class="post-metadata">

**Author:** ![jan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ce7236/32.png) [@jan](https://www.ruby-forum.com/u/jan)\
**Post date:** [October 7, 2008, 8:21pm UTC](https://www.ruby-forum.com/t/textilize-with-3-dashes-removes-text/150271/3 "2008-10-07T20:21:19Z")

</div>

Hi,

thanks for your reply.

I have RedCloth 4.0.4 installed. However, it was using an old version  
that is for some reason in the ruby 1.8 folder.  
/usr/lib/ruby/1.8/redcloth.rb that includes 3.0.99.0.svn.20060519!

I removed the file redcloth.rb and now it works. But removing the file  
does not seem a very clean solution. If you have any suggestion about  
this, that would be great.

Thanks and Cheers,  
Jan
