# RedCloth

**URL:** <https://www.ruby-forum.com/t/redcloth/96029>\
**Category:** Rails\
**Created:** [June 23, 2006, 4:06am UTC](https://www.ruby-forum.com/t/redcloth/96029 "2006-06-23T04:06:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohammad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mohammad](https://www.ruby-forum.com/u/mohammad)\
**Post date:** [June 23, 2006, 4:06am UTC](https://www.ruby-forum.com/t/redcloth/96029/1 "2006-06-23T04:06:30Z")

</div>

Help me!!!Lol

I’ve been working with RedCloth but it’s runed my layout because it put  
the

and

 is there a way to remove this without gsubing it up or  
if I do what the prettiest I can make it?

---

<div class="post-metadata">

**Author:** ![mohammad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mohammad](https://www.ruby-forum.com/u/mohammad)\
**Post date:** [June 23, 2006, 4:53am UTC](https://www.ruby-forum.com/t/redcloth/96029/2 "2006-06-23T04:53:47Z")

</div>

Sorry but if having p around your paragraph destroys your layout then  
it points more to a faulty layout.

On 6/23/06, Mohammad [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

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

–

---

<div class="post-metadata">

**Author:** ![mohammad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mohammad](https://www.ruby-forum.com/u/mohammad)\
**Post date:** [June 23, 2006, 5:00am UTC](https://www.ruby-forum.com/t/redcloth/96029/3 "2006-06-23T05:00:07Z")

</div>

On Fri Jun 23, 2006 at 02:51:30AM +0000, Jon Gretar B. wrote:

> Sorry but if having p around your paragraph destroys your layout then  
> it points more to a faulty layout.
> 
> On 6/23/06, Mohammad [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Help me!!!Lol

theres a textilize\_without\_paragraph or something, which just removes  
the beginning and ending

's, but then your doc isnt xhtml complaint,  
since you end up with something like this:

blahsdblhasdblasdhas lkadj  
alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj  
alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj  
alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj  
alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj  
alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj  
alskdjalskdjalskdjalskdjalskdj

blahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdj

its something im willing to live with, since i cant figure out how to  
make \<p’s really only take space on the bottom, eg,  
padding-top:0;padding-bottom:1em didnt seem to work right, at least in  
my browser…

---

<div class="post-metadata">

**Author:** ![mohammad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mohammad](https://www.ruby-forum.com/u/mohammad)\
**Post date:** [June 23, 2006, 5:12am UTC](https://www.ruby-forum.com/t/redcloth/96029/4 "2006-06-23T05:12:15Z")

</div>

Try  
padding: 1px 1px 5px 1px;  
or something like that. Think the order is top, left, bottom, right.  
Same thing can be done with margin.

On 6/23/06, carmen [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > if I do what the prettiest I can make it?  
> > > –  
> > > removed\_email\_address@domain.invalid  
> > > [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–

---

<div class="post-metadata">

**Author:** ![mohammad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mohammad](https://www.ruby-forum.com/u/mohammad)\
**Post date:** [June 23, 2006, 6:54am UTC](https://www.ruby-forum.com/t/redcloth/96029/5 "2006-06-23T06:54:05Z")

</div>

On Jun 22, 2006, at 8:09 PM, Jon Gretar B. wrote:

> Try  
> padding: 1px 1px 5px 1px;  
> or something like that. Think the order is top, left, bottom, right.  
> Same thing can be done with margin.

I think you mean “top, right, bottom, left”, right?

But I’d agree with the “fix your layout if

tags are breaking it”  
suggestion.

-\> jp
