Jason Garber wrote:
Nate, I didn't really follow you.  Can you have another go at it?
Sure. It was late when I posted. When I upgraded to 0.7.1 I noticed that I was getting extra line breaks (<br>) between lines, even though the exact same stylesheet was used and nothing else in the conten had changed. Well as it turned out, the pages with the problems had the Textile filter on and the snippets and page parts added on the pages each had textile turned on. In 0.6.9 this didn't create problems, everything went through it's own filtering process and the html rendered correctly.

In 0.7.1, every time a page part or snippet was processed on the page, the Textile filter was invoked and I was getting html with extra line breaks as Textile filter was called multiple times on the same page content. I may be the only person experiencing this, but for me, this excellent. This is exactly how I originally imagined the Textile filter to work. With the filter set on a container page, all the page parts and snippets on it are filtered at the same time.

Does that make more sense?

Radiant 0.6.9 locked you into using RedCloth 3.0.4 for Textile, which was released in September of 2005. 0.7.1 lets you use RedCloth from gems, so you can get the latest RedCloth—4.1.9 which is much better. It handles HTML or already-rendered Textile (i.e. HTML) much better. I find occasionally I still have to wrap some radius tags in <notextile> blocks, but it's a big improvement over what we had before.

Do you have to do anything special to make this happen? I installed the RedCloth 4 extension to avoid using v3.0.4 that it looks like Radiant uses by default. Are you saying that Radiant should automatically use my gem by default?
Maybe something within Radiant changed between 0.6.9 and 0.7.1, but I doubt it.

Are you saying it's an overall improvement? Do you have suggestions for additional improvements.

I would say that if Radiant uses the gem automatically, then it's perfect. If not, then I am getting the behavior that I wanted by using the RedCloth4 extension.
That reminds me, I made a pure-Ruby version of RedCloth a couple months ago and I should submit that to Radiant to be bundled in in place of 3.0.4.

That would be great.
Have a great weekend!  I'm probably offline 'til Tuesday.
You too, but I am always online.  ;^)



~Nate
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to