# Codeblock line break behaviour?

**URL:** <https://discourse.joplinapp.org/t/codeblock-line-break-behaviour/20653>\
**Category:** Support\
**Created:** [1 October 2021 03:16 UTC](https://discourse.joplinapp.org/t/codeblock-line-break-behaviour/20653 "2021-10-01T03:16:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abamok](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/abamok/32/9946_2.png) [@abamok](https://discourse.joplinapp.org/u/abamok)\
**Post date:** [1 October 2021 03:16 UTC](https://discourse.joplinapp.org/t/codeblock-line-break-behaviour/20653/1 "2021-10-01T03:16:45Z")

</div>

I upgraded to Joplin 2.4.9 (prod, win32)  
os: Win 10

 ![121212](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/2X/d/d83f9fc28fa0520336d361737b9a0addc5f2cb8e.png)

hi guys, i would like to know if the existence of no line break is now the default behavior, it destroyed all my notes that had "one liners" code

---

<div class="post-metadata">

**Author:** ![dpoulton](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/dpoulton/32/30800_2.png) [@dpoulton](https://discourse.joplinapp.org/u/dpoulton)\
**Post date:** [1 October 2021 09:22 UTC](https://discourse.joplinapp.org/t/codeblock-line-break-behaviour/20653/2 "2021-10-01T09:22:38Z")

</div>

I do not know if text wrapping in fenced code blocks was ever introduced as a default but Joplin used to do what you are seeing.

I have had the below css in my **userstyle.css** file for a long time to ensure that fenced code wraps.

```css
code {
    white-space: pre-wrap;
}

```

---

<div class="post-metadata">

**Author:** ![abamok](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/abamok/32/9946_2.png) [@abamok](https://discourse.joplinapp.org/u/abamok)\
**Post date:** [1 October 2021 12:36 UTC](https://discourse.joplinapp.org/t/codeblock-line-break-behaviour/20653/3 "2021-10-01T12:36:43Z")

</div>

Thank you very much. I really appreciate it! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/3X/1/c/1c948e33314e232a0927789508474d8624f4270b.png) [@system](https://discourse.joplinapp.org/u/system)\
**Post date:** [31 October 2021 12:37 UTC](https://discourse.joplinapp.org/t/codeblock-line-break-behaviour/20653/4 "2021-10-31T12:37:28Z")

</div>

Closed on 31 October 2021 12:37 UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
