# BBCode \[quote\] tag and mixed newlines

**URL:** <https://meta.discourse.org/t/bbcode-quote-tag-and-mixed-newlines/103708>\
**Category:** Feature\
**Created:** [December 7, 2018, 2:20pm UTC](https://meta.discourse.org/t/bbcode-quote-tag-and-mixed-newlines/103708 "2018-12-07T14:20:40Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Philibre](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/philibre/32/126237_2.png) [@Philibre](https://meta.discourse.org/u/Philibre)\
**Post date:** [December 7, 2018, 2:20pm UTC](https://meta.discourse.org/t/bbcode-quote-tag-and-mixed-newlines/103708/1 "2018-12-07T14:20:40Z")

</div>

Hello.

On a forum using Discourse 2.2.0.beta2, while writing PM or public posts, **I’ve got some strange behavior with quotes and newlines** ; _“strange” for someone used to BBcode on classical phpBB-like forums._ **Is this a bug or a desired/designed behaviour ?**

I’ll try to reproduce it here (2.2.0.beta5 now).

The syntax correctly displayed is either:

```
[quote]Without any newline between opening and closing tags.[/quote]

```

or

```
[quote]
With newlines after the opening tag and before the closing [/code]tag.
[/quote]

```

But **if both forms are mixed, then it’s not “correctly” displayed** (“correctly” for someone used to BBcode on classical forums) :

```
[quote]
With newline after opening tag only.[/quote]
 
[quote]With newline before closing tag only.
[/quote]

```

is **“badly” displayed** like this

> [@](#):
>
> With newline after opening tag only.[/quote]
> 
> [quote]With newline before closing tag only.

and

```
[quote]With newline before closing tag only.
[/quote]

[quote]
With newline after opening tag only.[/quote]

```

is **even more “badly” displayed** without interpretation

[quote]With newline before closing tag only.  
[/quote]

[quote]  
With newline after opening tag only.[/quote]

---

_[View the full topic](https://meta.discourse.org/t/bbcode-quote-tag-and-mixed-newlines/103708)._
