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
on 2008-12-29 17:01
on 2008-12-29 17:06
Sounds like it could be a difference in RedCloth versions. Are they the same on both machines? Jeff
on 2008-12-29 17:12
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, if you end a line with 2 or more spaces, it is interpreted as a line-break (i.e. <br>). Drew : http://www.wishingline.com/downloads/documentation...
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 :)
on 2008-12-29 17:49
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).