Blogs that use "pre" tag rendered unreadably

I read programming blogs which frequently show code snippets inside

 tags, where linebreaks and spacing should be preserved (and they were in that g----e product). Unfortunately, in newsblur the code is all run together, making the code snippets unreadable in "feed" and "text" views. Here is an example (with reader on the left and newsblur on the right): 
 [![](https://d37wxxhohlp07s.cloudfront.net/s3_images/874172/reader-newsblur-compared_inline.png?1363695435)](https://d37wxxhohlp07s.cloudfront.net/s3_images/874172/reader-newsblur-compared.png?1363695435) 

 This misbehavior is seemingly identical on www and dev.
10 Likes

I found that by installing stylish and applying the following site style, my experience in newsblur is improved:

 
@-moz-document domain("dev.newsblur.com") {   
pre { white-space: pre-wrap !important }   
} ``` other browsers besides firefox may have their own ways to override site styles.

What’s the NewsBlur URL of this feed so I can test it?

The example above is originally from http://westmarch.sjsoft.com/feed/ though I read it through a subscription to http://planet.python.org/

I was seeing this problem on http://syndication.thedailywtf.com/Th… yesterday, but I’m not seeing it today using dev.newsblur.com

The problem appears to have been fixed by the following commit in git: https://github.com/samuelclay/NewsBlu…

thanks wombleton, whoever you are. (though I may keep my white-space: pre-wrap hack as it improves pre blocks with very long lines)

1 Like

Yup, I merged the pull request. Glad it worked!

I’m seeing the same issue here today, for this post: http://ericlippert.com/2013/05/23/the…

Screenshot in Newsblur:

Screenshot on the blog:

I am still encountering this, on Raymond Chen’s blog. Noticed it in this post: http://blogs.msdn.com/b/oldnewthing/a…

If you spot this, please give me the story title and the newsblur.com site url.

Try this blog, it still seems to exhibit the problem on every post with large code blocks: http://blogs.msdn.com/b/oldnewthing/

I think this is the Newsblur site URL you want: http://newsblur.com/site/1437958/the-…

Hi,
I’m seeing the issue on this story: “plist, pickle, hdf5, protocol buffers… : les formats binaires” – http://sametmax.com/plist-pickle-hdf5…
The newsblur URL of the feed is http://www.newsblur.com/site/1202702/…

I have an example that I believe is related. In the case of this story the code blocks are displayed correctly in the “text” display mode but they run onto a single line in the “feed” mode.

The story title is “Using Java’s JDBC-ODBC bridge from Clojure”

The site’s NewsBlur URL is https://www.newsblur.com/site/177937/…

The original URL is http://jbm.io/2013/08/using-javas-jdb…

Let me know if you need any additional info.

Full disclosure: I’m the author of the post in question.

i’m still seeing this for the daily wtf when they use the pre tag.

https://newsblur.com/site/941/the-dai…

story: CodeSOD: A Careless Merge

Bump - I’m still seeing this. Today I saw it for this feed http://www.newsblur.com/site/1359/you… and this post http://haacked.com/archive/2014/04/16…

Yep, still seeing this. I think it’s mainly the fault of whatever you’re using to do syntax highlighting (also, the syntax highlighting seems to fail in lots of cases, so why even apply it at all?)

http://trixter.oldskool.org/2014/05/1…
http://newsblur.com/site/198323/oldsk…

Original:

On newsblur:

Looks like it only happens on stories that see content changes. The code pulls in fine the first time, but when it gets rewritten to include diffs, all of the formatting is lost. I’m working on a fix now, but it may not take.

Hooray! I’ve got some terrific news. Not only has this bug been squashed but I also fixed the bug where links would compress the space around them if any word in the containing paragraph was changed. Same bug, in fact.

This should propagate out over the next few hours. Unfortunately it won’t fix existing blog posts unless they have another change. But it should no longer happen to new posts.

1 Like

Thanks Samuel! I’ll let you know if I see it again.

I’m still seeing this, or something like it. For instance, this page is rendered with the code blocks all on a single line: https://devlinzed.com/2014-05-05-disc…