Wednesday, November 22, 2006

Tell Blogger Beta not to add line breaks to your posts

When composing posts, unless the post is short and requires no special formatting, I rarely use Blogger's post editing function. Instead, I use my favorite HTML editor, format it as I wish, then copy to Blogger (I often switch to HTML mode and copy the HTML source because I don't trust Blogger can do a perfect job handling pastes in compose mode).

However, Blogger, by default, convert every new line character to <br> (check) tag and make my paragraphs look awkward. It is OK to do that in compose mode, but Blogger do that even in HTML mode. That is bad since I already formatted everything using my HTML editor. I worked around by configuring my HTML editor not to wrap long lines, or by using some tool like HtmlTidy.

Recently, I found out that 'feature" could be turned off (I am using Blogger Beta). Just go to your blog's settings, select Format, and you'll find a combo box where you can disable the feature. Note that the description under the combo box says the setting affect both the post and the comment editing forms. That is not true. I turned it off, and that affects the posts only, not the comments. That is reasonable since we rarely write a long comment with special formatting needs.

No comments: