Phantom code when Radiant is deployed


#1

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


#2

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

Jeff


#3

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
Markdown1, if you end a line with 2 or more spaces, it is
interpreted as a line-break (i.e.
).

Drew


#4

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… :slight_smile: 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).


#5

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 :slight_smile: