Page 1 of 1

Textile Problem in extended entry ober RSS

Posted: Wed Sep 30, 2009 8:51 am
by konus
Hello,
I have a problem with textile in RSS-Feeds in my blog. I use textile for formatting headings.

Viewing the article in the browser works just fine, but in the RSS-Feed, the first line of the extended entry is not transformed from h5. to <h5>.

An example can be seen at one of the last article "Waldspielplatz Albertpark in der Dresdner Heide" at http://www.dd4kids.de/archives/31-Walds ... Heide.html
The heading "Mitarbeiter" is the first line in the extended entry of the article and looks fine in Browser but is not transformed in RSS-Feed.

I found a blank-space before the first line of my extended entry of my RSS-Feed and I know, that this is the reason that textile does not work there.

My questions are now, where does the extra blank-space come from in the extended entry of the RSS-Feed, since it is not in the Browser Output and how could this be corrected?

Any help is appreciated!

Re: Textile Problem in extended entry ober RSS

Posted: Wed Sep 30, 2009 11:38 am
by garvinhicking
Hi!

This should stem from include/functions_rss.inc.php:

Code: Select all

            // Embed a link to extended entry, if existing
            if ($options['fullFeed']) {
                $entry['body'] .= ' ' . $entry['extended'];
                $ext = '';
            } elseif ($entry['exflag']) {
                $ext = '<br /><a href="' . $entry['feed_entryLink'] . '#extended">' . ...
            } else {
                $ext = '';
            }
There you have the ' ' in the first if. However if we remove that, this would mean in an RSS Feed it coult happen that if the user did not end his 'body' with a newline, that you can have character mashing inside the RSS feed.

Would using $entry['body'] .= "\n" . $entry['extended'] work better in terms of textile transforms?

Regards,
Garvin

Re: Textile Problem in extended entry ober RSS

Posted: Wed Sep 30, 2009 2:16 pm
by konus
Good Idea! I think a newline instead of a blank-space would solve my problem.

I changed it and will test it. Because feedburner is caching my rss-feed, I can't try it real time and have to wait until my next article.

Thank you!