• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

RSS Feed to post,want double <br />

#1
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.
 

Jake Bunce

XenForo moderator
Staff member
#2
I think you are looking for this code:

library/XenForo/Model/Feed.php

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.
 
#3
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']);