this post was submitted on 12 Jul 2026
14 points (93.8% liked)

No Stupid Questions

48895 readers
1206 users here now

No such thing. Ask away!

!nostupidquestions is a community dedicated to being helpful and answering each others' questions on various topics.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules (interactive)


Rule 1- All posts must be legitimate questions. All post titles must include a question.

All posts must be legitimate questions, and all post titles must include a question. Questions that are joke or trolling questions, memes, song lyrics as title, etc. are not allowed here. See Rule 6 for all exceptions.



Rule 2- Your question subject cannot be illegal or NSFW material.

Your question subject cannot be illegal or NSFW material. You will be warned first, banned second.



Rule 3- Do not seek mental, medical and professional help here.

Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.



Rule 4- No self promotion or upvote-farming of any kind.

That's it.



Rule 5- No baiting or sealioning or promoting an agenda.

Questions which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.



Rule 6- Regarding META posts and joke questions.

Provided it is about the community itself, you may post non-question posts using the [META] tag on your post title.

On fridays, you are allowed to post meme and troll questions, on the condition that it's in text format only, and conforms with our other rules. These posts MUST include the [NSQ Friday] tag in their title.

If you post a serious question on friday and are looking only for legitimate answers, then please include the [Serious] tag on your post. Irrelevant replies will then be removed by moderators.



Rule 7- You can't intentionally annoy, mock, or harass other members.

If you intentionally annoy, mock, harass, or discriminate against any individual member, you will be removed.

Likewise, if you are a member, sympathiser or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people, and you were provably vocal about your hate, then you will be banned on sight.



Rule 8- All comments should try to stay relevant to their parent content.



Rule 9- Reposts from other platforms are not allowed.

Let everyone have their own content.



Rule 10- Majority of bots aren't allowed to participate here. This includes using AI responses and summaries.



Credits

Our breathtaking icon was bestowed upon us by @Cevilia!

The greatest banner of all time: by @TheOneWithTheHair!

founded 3 years ago
MODERATORS
 

Sometimes you want to write something with broken lines and you write in the editor:

That's right I'm Sokka
It's pronounced with an Okka
Young Ladies, I rocked ya!

But it ends up looking like this:

That's right I'm Sokka It's pronounced with an Okka Young Ladies, I rocked ya!

The fix is to add two spaces between the final character and the carriage return.

I don't understand what the problem is. CR should be easy enough to translate, and the users intentions are clearly confirmed because they're looking right at what the expect it to look like when they hit submit.

Why does the user have to add two spaces? Why is the universe like this?

Edit: Holy Shit, look, I'm just an idiot typing text expecting WYSIWYG and I don't see a good reason for why I'm not getting it other than that programmers lack theory of mind.

you are viewing a single comment's thread
view the rest of the comments
[–] TootSweet@lemmy.world 3 points 1 hour ago* (last edited 33 minutes ago) (1 children)

So, I think I kindof know what you're getting at here, but you're not being very precise about it.

First some definitions (just for purposes of this conversation -- don't take this to be any assertion that a particular term always inherently has a particular meaning, it's just a tool for this conversation specifically):

  • Character: a single unicode character.
  • Plain text: unicode text absent any formatting.
  • Source: the plain text to be fed into a Markdown renderer to produce rendered output.
  • Rendered output: the formatted output of a Markdown renderer, as displayed to an end user.
  • Editor: any computer program or component of a computer program for the entry of plain text.
  • Line: text (plain text or rendered output, depending on context) rendered at the same vertical position.
  • Line break: the point at which text (either plain text or rendered output depending on context) starts rendering on the next line because of a newline.
  • Newline: a character that always forces a line break in an editor. (Remember "editor" is only about plaintext, so a newline doesn't necessarily force a line break in rendered output.)
  • Wrap: the point at which, absent a newline, text starts rendering on the next line due to column width constraints.

(As an aside a line break is sometimes accomplished with a "line feed" character. A "carriage return" character is something else that isn't the same thing. Which is a big part of where the confusion comes from.)

What you're saying, I think, is that putting a single newline in the source doesn't result in a line break in the rendered output. Is that right?

In some editors (Vim being one I know of), when plain text word wraps, pressing "down" when the cursor is on the first line of a wrapped series of lines causes the cursor to jump not to the second line of wrapped text, but to the first line after the next newline. To illustrate:

If this line is wrapped due to
being wider than the available
width.
And if this line is on its own line
due to being immediately preceeded
by a newline.

If your cursor in the above example was on the "w" in the first line there, pressing down would take the cursor to the space immediately before "is" in "And if this line is on its own line".

As a result, it can be quite a pain to deal with word wraps in such editors. This is part of why certain code style guides (like this one and this one have hard limits for how many characters are allowed before the next newline.

Given how much more convenient line breaks can be than word wrapping, people writing source to be rendered into rendered output may wish to be able to insert newlines to cause line breaks in the source without causing any change in the corresponding rendered output.

That all make sense?

At least that's most likely at least one reason why the people who invented Markdown decided specifically to make Markdown work that way.

Edit: Holy Shit, look, I’m just an idiot typing text expecting WYSIWYG and I don’t see a good reason for why I’m not getting it other than that programmers lack theory of mind.

I'm glad you're not in charge. I very much don't want to go back to the days of having TinyMCE embedded in everything.

[–] schipelblorp@sh.itjust.works 1 points 24 minutes ago

Yeah, that makes plenty of sense, especially coming from a coding perspective and also from a perspective of compatibility with different width displays. Thanks!