Saturday, January 30, 2010

Post Options - handling line-breaks

This article explains the difference between the Edit HTML Line Breaks values of Convert new lines and Press Enter for line breaks.

Update:   the version of Blogger release in 2020 no longer has this option.  The information below is kept for historical perspective, but it no longer current in Blogger.



What is the Line Breaks option in Blogger


Line break through Potarch Wood. - geograph.org.uk - 418605 One of the items that can be set in the Options section of Blogger's Post Editor is how line-breaks are handled.

At one time, the values for this were:
  • Convert new lines
  • Ignore new lines 

But now they are:
  • Press "Enter" for line breaks
  • Use <br > tags
(sometimes in the updated interface, the <br> text has looked  a little strange - but the effect of it stayed the same).
 

What do these settings mean

Despite the wording change, these options mean the same thing:


Convert new lines and Press Enter for line breaks:
If you are working in Compose mode, and use the Enter/Return key to make a space between paragraphs, Blogger will put a new line into the underlying post for you.  But if you look at the HTML behind the post this will show as a new line, not as <br />  

Ignore new lines and Use <br> tags
If you are working in Compose mode, and use the Enter/Return key to make a space between paragraphs, Blogger will put a new line into the underlying post for you, AND if you look at the HTML behind the post this will show as <br />  

This may not seem like a major issue, but it can be important to understand if you want to put code from elsewhere into your posts.

Also, if you are moving posts between different blogs it's quite important to have the same line breaks setting on each side before you copy the HTML, or else you can get strange-looking results



Related Articles


Where to find the Post Options settings

Putting 3rd party code into posts

Copying a post from one blog to another

Using Labels to put your posts into pages

Share this Article

URL:

HTML link code:

BB (forum) link code:

Subscribe to Blogger-hints-and-tips

FeedBurner will send a confirmation message. Click the verify link in it to start your subscription.

Follow Me on Pinterest Subscribe to Blogger-HAT on Google + RSS subscription icon Follow BloggerHAT on Twitter

No comments:

Post a Comment