WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: SimplePie Plugin for WordPress] Missing spaces between words in feed item titles (1 post)

  1. Lionel Chollet
    Member
    Posted 6 years ago #

    SimplePie is a terrific feed parsing utility.

    But…

    SimplePie removes all line breaks and tabs from its feed outputs; this can be a (minor) issue with feeds that are made after, I guess, text processor files -- for instance, in the SimplePie's output for feed http://www.education.gouv.fr/rss/?pid=270&sid=2&lid=1, feed items titles had missing spaces between words, because of the "manual" layout of titles in the initial text document (it seems line breaks were put in titles at "logical" or "that'll-make-pretty-lines" locations).

    So…

    - in "/wp-content/plugins/simplepie-plugin-for-wordpress" folder, open file simplepie_wordpress_2.php

    - Find lines #2191 and #2192

    - Replace

    // Start by removing all line breaks and tabs.
    	$tmpl = preg_replace('/(\n|\r|\t)/i', "", $tmpl);

    with

    // Start by replacing all line breaks and tabs with spaces.
    	$tmpl = preg_replace('/(\n|\r|\t)/i', " ", $tmpl);

    It doesn't seem to break anything in the other feeds.

    http://wordpress.org/extend/plugins/simplepie-plugin-for-wordpress/

Topic Closed

This topic has been closed to new replies.

About this Topic