Why blogger puts BR tags only when content served via RSS feed?

Posted by tamashumi on Pro Webmasters See other posts from Pro Webmasters or by tamashumi
Published on 2012-10-08T14:21:57Z Indexed on 2012/10/08 21:51 UTC
Read the original article Hit count: 236

Filed under:
|

I have a problem with using my new blog RSS feed. I wrote a post (the first one) with some code examples formatted by SyntaxHighlighter. To paste a code sample I'm switching from WYSIWYG to HTML view and put the code inside pre tag like this (don't worry, h4 tag was opened a line above the screenshot area):

formatting code example on the blog

The problem is that such pre tag, when later accessed via RSS feed contains br tags instead of new line characters. Below is screenshot of the adequate RSS source code:

RSS source code with unwanted BRs

What's most important when accessed via www, the post html is formatted fine, no brs inside pre. I verified that by downloading the blog post with wget. So I believe this isn't SyntaxHighlighter issue nor any 'new line' formatting on blog post save.

This is a real problem as I want aggregate my blog on employers blog and all formatting of code examples is broken because of that.

The base question is: how to get rid of those unwanted brs served via RSS?

What's strangest friend of mine also uses blogger for such aggregation and he has no such issue. I checked his RSS feed and there are no brs inside pre tags. We also compared settings of our blogs. However we have found no clue.

Last thing: I see content served from RSS is now also html encoded. If I remember well, it wasn't previously.

© Pro Webmasters or respective owner

Related posts about rss

Related posts about blogger