When I post a question and want to add a new line, I have to press Return two times, or else the next text will appear on the same line.

Is this really supposed to behave this way? If so, why?


4 Answers 4


This is real, and there's a reason for this. It's two-fold, actually.

First, there is a huge difference between a line break and a paragraph break. A line break is just that: The reading flow continues on the next line; your eyes automatically jump from the end of the previous line to the beginning of the next.

So the purpose of a line break is to not be seen.

A paragraph break, on the other hand, gives your eyes room to breathe, so to speak. Paragraphs are used to break up text into smaller blocks so that reading happens more rhythmically and not inonegiantwalloflettersthatneverseemstostopohmycanitendalreadyineedtotakeabreak.

How exactly a paragraph break is presented often depends on the country and/or the language. Usually it's one of two ways: Either there is a bit of white space between the paragraphs (as it is done on Stack Overflow), or the first line of a paragraph is indented.
    That's this way. Of course you can also combine both ways. Either way, there is a visual break between the two paragraphs, so the reader automatically takes a breath at the point.

When people press Return in MS Word or OpenOffice Writer, they often expect this to create a line break (or "newline"). But the fact that writing continues on the next line after pressing that key is just a side effect of a paragraph break.

If your first-line indent or the pre- or post-space is non-zero in the paragraph settings, you'll notice that a lot more happens than just a newline. (Microsoft changed their Office defaults, so beginning with Office 2007, a paragraph break in Word actually does look different than a line break. This tends to confuse a lot of people who don't make this distinction.)

Especially when writing text, it is very rare to insert a manual line break; most of the time, you'll leave it to your word processor to jump to the next line when there's no more space left on this one.

Here's one of the rare examples where you actually want to insert a line break, but not a paragraph break:

When the woman asked him to help her with carrying her many bags, he took a nap
sack from the luggage compartment. As a Gentleman, he wouldn't say no to a lady.

(the key to insert a line break in Word and in OOo is <Shift>-Return, by the way.)

Okay, what was your question again? Ah, yes. Markdown was created to be written in a way similar to the way plain text emails are written: Dashes as underlines, words in *stars* to denote emphasis, etc.

To denote paragraph breaks in emails, you would usually use the white-space variant, not the indentation variant; especially since it often happens that space characters are stripped, which could lead to you losing your paragraph breaks (and thus readability).

But since in plain text emails there is no way to insert a nice automatic .7em post-paragraph spacing, the standard way to separate paragraphs is inserting an empty line. And so this practice was carried over to Markdown.

The second reason is that you can't be sure about the screen width the recipient of your email. If your email is wrapped to 79 characters per line, but it is read at 70 characters per line, you either have alternating long line – short line – long line – short line etc., which isn't really fun to read; or your email program rewraps the lines by [there it is:] ignoring single line breaks.

As to the question why a real line break in markdown is created with two trailing spaces – I don't know. Maybe because it's the opposite of a two-character indent, so it's a "non-paragraph break".

Whatever the reason: Remember that in normal text flow, you usually don't want to insert a line break, you want to insert a paragraph break. This is even more true when your text ends up as HTML, so you can't tell anyway how it's going to render on the reader's screen.

  • 23
    When you write answers on Meta which are more than a page high, you clearly have too much free time. Great answer, though.
    – Gnoupi
    Commented Apr 6, 2010 at 8:30
  • 4
    And for those still not convinced: compare the above to the version without whitespace.
    – Arjan
    Commented Mar 4, 2012 at 12:47
  • 2
    Do you know why the double-spaces trick is so prominently explained in the Markdown help? It currently is the second thing we're (wrongly) teaching people! I'd love it to explain that empty lines are to be preferred. Like: Linebreaks Use a blank line to start a new <p> paragraph. Only when really needed, end a line with two spaces to add a <br/> linebreak.
    – Arjan
    Commented Apr 28, 2012 at 18:05
  • I was unsure about whether to edit "nap sack" as it has the feeling of a quote but I couldn't find where from... Did you mean knapsack? Commented Jan 26, 2013 at 17:38
  • 1
    Nope, @Ben, "took a knap" would spoil the joke (and hence the example), wouldn't it?
    – Arjan
    Commented Jan 26, 2013 at 17:45
  • Thank you @Arjan, apparently I'm obviously not on form for wordplay today... Commented Jan 26, 2013 at 17:46
  • @benisuǝqbackwards I did, but for some reason I thought it's spelled this way (although there is in fact a brand name "Napsack"). But as Arjan says, it doesn't make sense to fix this. If someone comes up with a better example of the point I'm making, I'm fine to have it changed.
    – balpha StaffMod
    Commented Jan 26, 2013 at 17:47
  • No @balpha, this is a perfect example (once Arjan has pointed out the reasoning for us slower people). Commented Jan 26, 2013 at 17:53
  • A more straightforward example would be quoting poetry.
    – TRiG
    Commented Apr 5, 2013 at 3:29
  • @TRiG, I disagree about using poetry as an example, as the current example (and its joke) explains why one often does not want an explicit line break. :-)
    – Arjan
    Commented Aug 13, 2013 at 7:59
  • balpha, your powers as a SE employee are needed! :-)
    – Arjan
    Commented Aug 8, 2015 at 16:38
  • "As to the question why a real line break in markdown is created with two trailing spaces – I don't know." Not an answer but something which could be relevant: RFC 2646 is marking soft line break (those which may be removed by reflowing the text to make it suitable for a given line length) by having them preceded with spaces. In practice one space is the most common case and having markdown mark the hard line break with two spaces reduce the interoperability issue (cutting and pasting an email in flowed format works better). Commented Sep 18, 2016 at 12:37

It's part of the Markdown spec. If you really want just a line break, you can put two spaces at the end of the line or use an html line break (<br>).

  • 2
    A <br> (inserted when using two spaces) is not the same as a <p> (resulting from a blank line). So, "really" should read: really, in very rare occasions :-) Respect the layout of the website, which happens to have some whitespace defined around paragraphs.
    – Arjan
    Commented Apr 6, 2010 at 6:20
  • 2
    Here you've spoken against <br/>, perhaps this answer needs a little remodeling ;)
    – Zuul
    Commented Jul 25, 2012 at 10:06
And as for the why: because while editing in plain text it looks much better.

This new paragraph is clearly separated from the previous one.

And as for the why: because while editing in plain text it looks much better.
This new paragraph is not so clearly separated from the previous one.

As others have mentioned, it's a Markdown oddity. Hopefully someone will come along some day and fix it. It's not very user friendly the way it is.

  • 8
    Hardly an oddity, it is quite common for a blank line in markup to indicate a new paragraph and has a long history (I first encountered it in TeX).
    – Richard
    Commented Apr 6, 2010 at 9:33
  • 2
    For many people who know what they type, when they type a return they want a return, either a paragraph end or an internal paragraph line break. Anyway this return is fully wanted. A nice interface, an interface which purpose is to be as near as possible of WYSIWIG, an interface which purpose is to help the one taking care, should make a return when one type one. From my point of vue, there wouldn't be any simpler and more efficient interface.
    – dan
    Commented Apr 6, 2015 at 11:43
  • 1
    @Richard, Well, it's also a TeX oddity actually. Nonprogrammers who aren't already exposed to TeX (or similar) interfaces don't typically expect it to work this way.
    – Pacerier
    Commented Jul 15, 2015 at 1:33
  • 1
    This should be the accepted answer.
    – tsuma534
    Commented Jul 28, 2016 at 11:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .