RSS Feed to post,want double <br />

Riven

Member
The regular RSS post replace <p> tag to single <br />, However, in Chinese language, it has to be double <br />, What file and code to modify?


Thanks in advance.
 
I think you are looking for this code:

library/XenForo/Model/Feed.php

Rich (BB code):
	public function prepareFeedEntry(array $entry, array $feedData, array $feed)
	{
		$entry['content'] = XenForo_Html_Renderer_BbCode::renderFromHtml($entry['content_html'], array(
			'baseUrl' => $feed['baseUrl']
		));

		$entry['author'] = $this->_getAuthorNamesFromArray($entry['authors']);

		if (empty($feed['message_template']))
		{
			$entry['message'] = $entry['content'];
		}
		else

But I don't have exact instructions for this.
 
Finally I found the solution, modify feed.php, in Function prepareFeedEntry,

After:

PHP:
$entry['message'] = trim($entry['message']);

Add this:

PHP:
$entry['message']=ereg_replace("\n", "\n\n", $entry['message']);
 
Top Bottom