# خطأ مع \[code\]anything\[/code\] في سطر واحد بمفرده

**URL:** <https://meta.discourse.org/t/bug-with-code-anything-code-on-a-single-line-by-itself/78634>\
**Category:** Bug\
**Created:** [22 يناير 2018، 9:18ص 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:** 6

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [22 يناير 2018، 9:49ص UTC](https://meta.discourse.org/t/bug-with-code-anything-code-on-a-single-line-by-itself/78634/6 "2018-01-22T09:49:47Z")

</div>

It means you are going to need to apply some sort of processor on the old imported code if you want multiline bbcode to be converted from:

```plaintext
some text [code]

test
[/code] test

```

to:

```plaintext
some text 

[code]

test
[/code] 

test

```

It is quite a fiddly transform and I did not want it included in core.

If I were to attack this on an old imported corpus I would apply a transform to the `posts` `raw` column that inserts the missing newlines and then run a full rebake.

---

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