Forum: Radiant CMS Phantom code when Radiant is deployed

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
515d99da5168da6627a63735bae09357?d=identicon&s=25 Jon Hope (jonmidhir)
on 2008-12-29 17:01
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 <br /> 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 <br /> 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
682233f4f5b894b2d328b0c98d0d7582?d=identicon&s=25 Jeffrey Jones (Guest)
on 2008-12-29 17:06
(Received via mailing list)
Sounds like it could be a difference in RedCloth versions. Are they the
same on both machines?

Jeff
514784888f1bbfb08a189684bf14abc2?d=identicon&s=25 Andrew Neil (Guest)
on 2008-12-29 17:12
(Received via mailing list)
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], if you end a line with 2 or more spaces, it is
interpreted as a line-break (i.e. <br>).

Drew

[1]:
http://www.wishingline.com/downloads/documentation...
515d99da5168da6627a63735bae09357?d=identicon&s=25 Jon Hope (jonmidhir)
on 2008-12-29 17:17
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 :)
26ed4a46e321f6f0f77a55b228a47145?d=identicon&s=25 Jay Levitt (Guest)
on 2008-12-29 17:49
(Received via mailing list)
Jon Hope 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).
This topic is locked and can not be replied to.