Quoting in an unusual way... any clues why it doesn't do multiple paragraphs?

We are transitioning into our new community and need to pull a few messages from an old system in for a while. That involves quoting from external sources.

Luckily there is a nice [quote] system. We should be able to paste in the text, put a [quote=“name”] at the start of the text, [/quote] at the end and it should indent and label… and collapse! Very cool.

But it doesn’t seem to do that across paragraphs. It works within a normal reply as intended… reply to a post, click the cloud, multiple paragraphs are quoted nicely. But if I create a new topic, paste in several paragraphs and add quote ‘tags’ to front and back it does not render.

Putting quote tags around a single paragraph when externally pasted in does work. So… what am I missing? Is there a trick to making this work?

I see the full, proper quote tag includes post, topic and full attributes. We’re not adding those… but if I do a quote the ‘normal’ way and delete those attributes is still works. Is there a clue there?

Also we are doing multiple quotes in a page… a bad thing?

Is there a way? Or am I hacking the tags and should just stop?

For now we are using the quote tags for the first paragraph, then > for subsequent paragraphs… clumsy. And it looks bad, to wit:

I know the flow isn’t quite normal, but my partner in this venture liked to quote in-stream in our past system so this works for him on these quotes we pull in…

Example: multiple paragraphs

Single paragraph. I only moved the /quote end tag:

I am confused, this seems to be working just fine here.

Don’t hack tags, just highlight the text you want to quote and click the quote button.

1 Like

I think you need to put a newline after the quote like

[quote] 

Text

Another paragraph

[/quote] 

4 Likes

Well, how about that! You nailed it, @pfaffman, and I thought I had tested that. It was the closing quote tag which needed the newline. Thanks!

image

4 Likes

To add a bit more detail to this for future searchers, here’s what my testing showed about the [quote] tags when added manually, as when quoting text from outside Discourse:

  1. If you are quoting a single paragraph, the start and stop tags can be in stream without linefeeds.

  2. If quoting multiple paragraphs they must each be on a separate line from the text.

  3. Start and stop tags must match… if the start tag is in-stream the end tag must also be in-stream.

Conclusion: if you always put the quote and unquote tags on a unique line it will work for single or multiple paragraph quotes.

3 Likes

Alternatively select each block you want to quote and just press the quote which floats beside it. The selected text will be copied into the reply window with correctly formatted tags.

If you want to use multiple quotes you can repeat the process.

No need to copy and paste, each quote will be correctly formatted every time.

3 Likes

I think that he is quoting from an external source, hence all of the confusion.

2 Likes