# Differences in how textbox and text components interpret multiple linebreaks (\\n)

**URL:** <https://discourse.psychopy.org/t/differences-in-how-textbox-and-text-components-interpret-multiple-linebreaks-n/39451>\
**Category:** Builder\
**Tags:** pavlovia\
**Created:** [April 4, 2024, 7:22pm UTC](https://discourse.psychopy.org/t/differences-in-how-textbox-and-text-components-interpret-multiple-linebreaks-n/39451 "2024-04-04T19:22:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomKelly](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@TomKelly](https://discourse.psychopy.org/u/TomKelly)\
**Post date:** [April 4, 2024, 7:22pm UTC](https://discourse.psychopy.org/t/differences-in-how-textbox-and-text-components-interpret-multiple-linebreaks-n/39451/1 "2024-04-04T19:22:42Z")

</div>

I’m using code components to create a variable which i then feed to text / textbox components in a builder experiment.

I want to control the spacing between lines of text.

If this sentence is my example:

“I want to drop this\n\n two lines”

If I use a text component, it works as intended:

"I want to drop this

two lines"

but if i use the textbox the outcome looks like this:

“I want to drop this  
two lines”

I cant get the textbox component to read any more than the single \n. Is there a way of getting the textbox component to behave more like the text component?

many thanks

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [January 19, 2025, 11:55am UTC](https://discourse.psychopy.org/t/differences-in-how-textbox-and-text-components-interpret-multiple-linebreaks-n/39451/2 "2025-01-19T11:55:02Z")

</div>

I think this may now be fixed. What is the latest version you’ve tried?
