Friday, June 27, 2008

Broken 'pre' tags with Blogger


Sometime in the last week, a significant change was introduced into Blogger. Previously, any content inside of a <pre> section was left alone. Now, a <br/> tag is insterted for every line break within a <pre> tag, which results in a double line break. As a result, all of my code snippets have an extra line break.

I will write a more relevant post tomorrow. I just wanted to explain why my existing snippets look wrong.

4 comments:

mizhi said...

Noticed this when I tried to post some source code today. I haven't found any solutions that don't involve a ton of work.

Glad I'm not the only one.

Matthew Higgins said...

Looks like they fixed the problem today.

mizhi said...

I also found that if you use http://draft.blogger.com editor, you can fix the issue.

S. Zydek said...

mizhi, thanks a million for mentioning the draft.blogger.com. I was having the exact same issue.