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!
Textile Problem in extended entry ober RSS
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Textile Problem in extended entry ober RSS
Hi!
This should stem from include/functions_rss.inc.php:
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
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 = '';
}
Would using $entry['body'] .= "\n" . $entry['extended'] work better in terms of textile transforms?
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: Textile Problem in extended entry ober RSS
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!
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!