# Phantom code when Radiant is deployed

**URL:** <https://www.ruby-forum.com/t/phantom-code-when-radiant-is-deployed/156531>\
**Category:** Radiant CMS\
**Created:** [December 29, 2008, 5:01pm UTC](https://www.ruby-forum.com/t/phantom-code-when-radiant-is-deployed/156531 "2008-12-29T17:01:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbhruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@jbhruby](https://www.ruby-forum.com/u/jbhruby)\
**Post date:** [December 29, 2008, 5:01pm UTC](https://www.ruby-forum.com/t/phantom-code-when-radiant-is-deployed/156531/1 "2008-12-29T17:01:40Z")

</div>

I’ve just prepared a whole site using the Radiant CMS and I’m happy with  
how it looks etc but when I deploy it to my server there are little bits  
of code appearing that shouldn’t be there!

For example there are   
 tags appearing in a list of images that are  
left floated, so they stagger downwards instead of being displayed in a  
line…

And on one page the styled comments look great and on another the  
‘clearing’ tags have been left out so they’re mushed up into each  
other… yet both pages use the same snippet to render the comments and  
it CONTAINS the clearing tags!!!

I tried emptying the cache but it’s done nothing. The only thing I can  
think of is that these are throwbacks to earlier code, like when the  
images were text links with   
 tags after them, that have somehow  
got resurrected when I deployed…

I just can’t figure it out though, anyone got ANY suggestions?!

Thanks,

Jon

---

<div class="post-metadata">

**Author:** ![jbhruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@jbhruby](https://www.ruby-forum.com/u/jbhruby)\
**Post date:** [December 29, 2008, 5:06pm UTC](https://www.ruby-forum.com/t/phantom-code-when-radiant-is-deployed/156531/2 "2008-12-29T17:06:09Z")

</div>

Sounds like it could be a difference in RedCloth versions. Are they the  
same on both machines?

Jeff

---

<div class="post-metadata">

**Author:** ![jbhruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@jbhruby](https://www.ruby-forum.com/u/jbhruby)\
**Post date:** [December 29, 2008, 5:12pm UTC](https://www.ruby-forum.com/t/phantom-code-when-radiant-is-deployed/156531/3 "2008-12-29T17:12:38Z")

</div>

Sounds like it could be caused by a filter. Are you using Markdown or  
Textile for any of the snippets or page parts? Be aware that  
whitespace is significant to both (?) of these filters. e.g. in  
Markdown[1](http://www.wishingline.com/downloads/documentation/markdown_cheatsheet.pdf), if you end a line with 2 or more spaces, it is  
interpreted as a line-break (i.e.   
).

Drew

---

<div class="post-metadata">

**Author:** ![jbhruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@jbhruby](https://www.ruby-forum.com/u/jbhruby)\
**Post date:** [December 29, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/phantom-code-when-radiant-is-deployed/156531/4 "2008-12-29T17:49:33Z")

</div>

Jon H. wrote:

> Thanks guys, the RedCloth thing fixed it. I have two versions locally  
> and it was using the older one. I still don’t understand WHY this fixed  
> it though, does the newer version add line breaks and remove clearing  
> tags?! lol

Pretty much… 🙂 RedCloth 3.0.4 was just horribly broken, especially  
with  
respect to BR tags, so for a year or so your only alternative was to use  
slightly different Textile markup or back off to 3.0.3 (which probably  
had  
its own bugs).

---

<div class="post-metadata">

**Author:** ![jbhruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@jbhruby](https://www.ruby-forum.com/u/jbhruby)\
**Post date:** [December 29, 2008, 5:17pm UTC](https://www.ruby-forum.com/t/phantom-code-when-radiant-is-deployed/156531/5 "2008-12-29T17:17:58Z")

</div>

Thanks guys, the RedCloth thing fixed it. I have two versions locally  
and it was using the older one. I still don’t understand WHY this fixed  
it though, does the newer version add line breaks and remove clearing  
tags?! lol

I was sure that it wasn’t a filter thing because I checked that  
specifically for code pages, but then if it’s adding html tags I guess  
anything’s possible 🙂
