# Bug con \[code\]anything\[/code\] su una singola riga da sola

**URL:** <https://meta.discourse.org/t/bug-with-code-anything-code-on-a-single-line-by-itself/78634>\
**Category:** Bug\
**Created:** [22 Gennaio 2018, 9:18am UTC](https://meta.discourse.org/t/bug-with-code-anything-code-on-a-single-line-by-itself/78634 "2018-01-22T09:18:49Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Bertrand\_Bellenot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bertrand_bellenot/32/91890_2.png) [@Bertrand\_Bellenot](https://meta.discourse.org/u/Bertrand_Bellenot)\
**Post date:** [22 Gennaio 2018, 9:18am UTC](https://meta.discourse.org/t/bug-with-code-anything-code-on-a-single-line-by-itself/78634/1 "2018-01-22T09:18:49Z")

</div>

Hi,

Our forum has a lot of `[code][/code]` in its topics, imported from our old phpbb3 forum. One of our user reported a couple of bugs with `[code][/code]`. For example, this:

```plaintext
A single line of code without newline looks as a grey thick line:
[code]TString option = GetOption();[/code]

```

Gives:  
A single line of code without newline looks as a grey thick line:

```plaintext
TString option = GetOption();
```

And in this other example, the `-- -----------------------------------------------------------` line gives another issue:

[code]hatiden@ubuntu:~$ gedit ~/.bashrc  
hatiden@ubuntu:~$ cd /home/hatiden/garfield/

* * *

hatiden@ubuntu:~/garfield$ ls  
[/code]

Cheers, Bertrand.

---

_[View the full topic](https://meta.discourse.org/t/bug-with-code-anything-code-on-a-single-line-by-itself/78634)._
