If I use a SINGLE enter, it gets removed for some dumb reason (for "space efficiency", my ass).

If I use TWO enters:

Like this, they stay.

What if I want to list things directly under each other? My only choice would be to use TWO enters and waste even more space.

Why not just respect the single and double use of enters? Unnecessary formatting!!!

all 16 comments

sorted by: hot top controversial new old
[–] 68 points 1 year ago* (3 children)

It’s Markdown syntax. Single newlines are ignored so the text can be styled to be 80 characters wide for example but still have it rendered with another line length while two newlines result in a new paragraph. It’s not about “space efficiency”.

To get a visible linebreak without creating a paragraph, add two spaces at the end of the line you want to break.

hello↵
↵
this is the first line␣␣↵
this is the second line↵
↵
more text here

… results in this:


hello

this is the first line
this is the second line

more text here


(Actual rendering depends on your renderer.)

  • source
  • hideshow 3 child comments
  • [–] [S] 1 point 1 year ago*

    Aha I see. Very informative, thanks. But what are the presumable downsides of just having enters work as regular enters?
    I think (?) I understand the appeal of all lines having the same full width, but this can still be accomplished by just not using any enters. Right?

    And having the rendering work just like the text editor, of course only adds bonus points to the overall user experience.
    What am I missing?

  • source
  • parent
  • [–] 22 points 1 year ago

    Here's a formatting guide that should help. I always used bullet points for multi-line items.

  • source
  • [–] 18 points 1 year ago (1 child)

    You can put a backslash before the newline, like this

    line1\
    line2\
    line3
    

    gets formatted as:

    line1
    line2
    line3

  • source
  • hideshow 1 child comment
  • [–] 12 points 1 year ago

    Two
    spaces
    before
    you
    press
    enter.

  • source
  • [–] 11 points 1 year ago

    It's a Markdown thing. End the line with two spaces.

    First line (two spaces) ->
    Second line

  • source
  • [–] 10 points 1 year ago (2 children)

    Two spaces at the end of the line
    Will give you what you're looking for

    • Markdown also supports
    • Using asterisks followed by a space at the beginning of the line
    • To create bullet points like this
    1. Or numbered lists
    2. Like this one
    3. Which is pretty much just what-you-see-is-what-you-get
  • source
  • hideshow 2 child comments
  • [–] 4 points 1 year ago (1 child)

    Thanks for the question. I've been wondering how to do this myself.

  • source
  • hideshow 1 child comment
  • [–] 3 points 1 year ago (1 child)

    Two spaces after the last character.
    Like
    This
    On my phone I have to wait about a second between each space I enter because Android wants to automatically add a "." to the end of a sentence if I double space too fast.

  • source
  • hideshow 1 child comment
  • [–] 2 points 1 year ago

    Android wants to automatically add a "." to the end of a sentence if I double space too fast

    If using GBoard, that can be disabled in settings. I don't know anyone who actually uses that feature, I don't know why it's enabled by default.

  • source
  • parent