2

How to Format ► for linebreak add 2 spaces at end

Why?

Why can't Stack Overflow as one of the biggest "Coding-Platforms" handle a stupid "Line-Break" as a "Line-Break"? Why "2 Spaces at the end"?

Best, [next line in editor view] dognose.

16
  • 4
    Thx for "-1" - But an answer or explanation would be so much more useful.
    – dognose
    Commented Jul 31, 2016 at 1:11
  • 5
    Well, that's not how markdown works, swallow or leave. (even presenting that as a code outline doesn't fit very well for what you're asking about) Commented Jul 31, 2016 at 1:12
  • @πάνταῥεῖ fixed the outline (sorry for that) - But what's the "real" background of this? "Swallow or leave" was for sure not the designers idea...?!
    – dognose
    Commented Jul 31, 2016 at 1:15
  • Fixed it more ... Commented Jul 31, 2016 at 1:16
  • @πάνταῥεῖ You're da real mvp
    – dognose
    Commented Jul 31, 2016 at 1:18
  • MVP?? Commented Jul 31, 2016 at 1:25
  • @πάνταῥεῖ en.wikipedia.org/wiki/Most_valuable_player
    – dognose
    Commented Jul 31, 2016 at 1:26
  • Usually not, I'm just a mere mortal like most others around here, but THX for the flowers anyway :) Commented Jul 31, 2016 at 1:30
  • Comon guys i'm not "new" to SO - Please add some comments to your downvotes or at least explain why you think the question deserves downvotes!
    – dognose
    Commented Jul 31, 2016 at 1:33
  • 1
    "Please add some comments to your downvotes ..." Disagreement this needs to be discussed at Meta SO? Commented Jul 31, 2016 at 1:35
  • 1
    @πάνταῥεῖ If you "carefully" check the url, THIS IS meta.stackoverflow.com/
    – dognose
    Commented Jul 31, 2016 at 1:44
  • 8
    @dognose: "Please add some comments to your downvotes or at least explain why you think the question deserves downvotes!" Because, at the end of the day, your question is clearly not a genuine search for the reason why SO uses this scheme. It's a rant disguised as a question, one which offers no justification for why the suggested method is an improvement over what we have now. Commented Jul 31, 2016 at 2:46
  • Related, but in a more civil manner: meta.stackexchange.com/questions/26011/…
    – user247702
    Commented Jul 31, 2016 at 17:24
  • 1
    I downvoted becasd;aoswerfpaowherft934yt034yrt39784r34fr
    – user1228
    Commented Aug 1, 2016 at 16:38
  • +1 as this post taught me how to do a soft break.. double-space. Who knew? Thanks!
    – mkinson
    Commented Apr 15, 2019 at 17:20

2 Answers 2

12

I think the designers of left us with the following choices:

  1. Add a line-break to have your markdown code readable and maintainable
  2. Add two spaces at the end, to have a soft line break, that will just add a newline to the rendered text.
  3. Add a break and an extra empty line to start a new paragraph

Sounds like a pretty reasonable decision for me.

6
  • I understand (2) - which is nice. But why does (1) require two spaces at the end? - Why isn't it just a regular freaking linebereak?
    – dognose
    Commented Jul 31, 2016 at 1:23
  • 2
    Think twice, how to distinguish? I probably wasn't complete enough with my answer yet. Commented Jul 31, 2016 at 1:26
  • AFAIK, every code-post requires indentation - so every "regular" line break could be easily identified.
    – dognose
    Commented Jul 31, 2016 at 1:30
  • @dognose Sorry to invalidate your comment. It's referring to 3. now. Commented Jul 31, 2016 at 1:32
  • 1
    Okay, maybe it's just "cultural" difference? (I dont't know) - But Over here in Europe, Hitting "Enter / Return" means: "Switch to next line", But TBH: I never ever posted to any US-Forum where the meaning was any different...
    – dognose
    Commented Jul 31, 2016 at 1:42
  • 3
    @dognose " But Over here in Europe ..." Did you check my profile? Commented Jul 31, 2016 at 2:25
12

Why can't stackoverflow as one of the biggest "Coding-Platforms" handle a stupid "Line-Break" as a "Line-Break"? Why "2 Spaces at the end"?

Here's a better question: why should it?

As far as plain text is concerned, double-spacing to have line breaks has been the way of things since the earliest text editors. Without paragraph indention, there's no other way to tell where one paragraph ends and another begins.

Markdown is a documentation format that is designed to be easily read regardless of whether it is formatted or not. Which means that, by design, it must use the standard way of depicting paragraph spacing: double-space.

Furthermore, it's often very useful to have line breaks inserted to prevent having to use wrapping or horizontal scrolling in your text editor. Breaking lines within a paragraph at, for example, 80 characters. If you respected all line breaks blindly when formatting that text, you would wreck your paragraph formatting.

Why go against that? Why develop a new dialect of Markdown (or worse, a whole new language) just for this? Why is what you propose in any way better than what we have now?

You must log in to answer this question.

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