When I highlight text and hit the quote button, it places the quoted text with tags exactly where my cursor is in my reply.
This is good, unless my cursor is at the end of a line of text. I find that when the quote gets added to an existing line of text, the code is not recognized making it a real quote.
Shouldn’t Discourse automatically start the [quote] on a new line?
If you use the quote whole post button in the composer it doesn’t start a new line… though I don’t normally use that button and seem to recall it happening to me before so maybe there are other cases.
My cursor is right here and I am quoting your post →
Yeah I can’t repro this either. Selecting text, then pressing quote, does insert newlines even if the cursor is at the end of a current line. If you are referring to “quote whole post” button that’s… a whole other ballgame.
Sorry I didn’t reply. I thought I had email notifications turned on.
So when I tried to recreate here on meta.discourse.org I did not get the same behaviour as on the discourse forum I participate on. So perhaps that forum is using an older version of the software?
I’m just a regular user on that forum and I thought I would ask about it here before I went to the mods there.
I certainly don’t feel that this is a major issue. I’m on a small device so I close the editor several times any time I’m quoting people. And I have seen other people post having stuck the [quote] tag onto another paragraph.
Would it make more sense to handle it from the other direction? Meaning, it shouldn’t matter where the opening quote tag appears in a message? Even if it’s butted up against other text shouldn’t it still render the same way? Just a suggestion. Obviously I have no idea how all this works.
Changing the formatting so that quotes on the end of a line work is much harder than fixing the text insertion code when the composer is closed, so I took the latter approach in this PR: