# How to start a new paragraph without messing up the code

**URL:** <https://forum.choiceofgames.com/t/how-to-start-a-new-paragraph-without-messing-up-the-code/122705>\
**Category:** Game Development\
**Created:** [July 28, 2022, 1:56pm UTC](https://forum.choiceofgames.com/t/how-to-start-a-new-paragraph-without-messing-up-the-code/122705 "2022-07-28T13:56:45Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacobrien](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jacobrien/32/174513_2.png) [@jacobrien](https://forum.choiceofgames.com/u/jacobrien)\
**Post date:** [July 28, 2022, 1:56pm UTC](https://forum.choiceofgames.com/t/how-to-start-a-new-paragraph-without-messing-up-the-code/122705/1 "2022-07-28T13:56:45Z")

</div>

When I’m writing dialogue scenes in choice script I use enter to start a new paragraph when someone else starts speaking, but when I do it messes up the code either with the mix of spaces and tabs error or the unexpected tab error. When I get rid of the spaces the dialogue scenes look really clunky, are harder to read, and not to mention grammatically incorrect. So, I’m looking for a way to have a paragraph in my scene without messing up the code. If you have any advice I would appreciate it, thank you.

---

<div class="post-metadata">

**Author:** ![Loudbeat](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/loudbeat/32/115975_2.png) [@Loudbeat](https://forum.choiceofgames.com/u/Loudbeat)\
**Post date:** [July 28, 2022, 2:14pm UTC](https://forum.choiceofgames.com/t/how-to-start-a-new-paragraph-without-messing-up-the-code/122705/2 "2022-07-28T14:14:11Z")

</div>

that’s leaving a blank space in between, it would shown just as you see it there.

```choicescript
text

text

```

for a new paragraph without a space in between you can use the `*line_break` command

```choicescript
text
*line_break
text new line

```

it would read:

text  
text new line

I don’t know if that answers your question, also here you have some useful info about choicescript you can look.

> [@Master List: Links for Beginners](https://forum.choiceofgames.com/t/master-list-links-for-beginners/21872):
>
> Since this gets asked a lot I thought I’d try and create a master list of links for beginners. If anyone wants to add links to the list please feel free to since I’m making this wiki format. [Start here for newcomers](https://www.choiceofgames.com/make-your-own-games/choicescript-intro/)[The Wiki](http://choicescriptdev.wikia.com)[ChoiceScript Basic Tutorial](http://choicescriptdev.wikia.com/wiki/A_Basic_Tutorial) on wiki [RETowers’ Tutorial](https://forum.choiceofgames.com/t/the-beginners-guide-to-choicescript/9866) by @RETowers[Lglasser’s Tutorial](https://forum.choiceofgames.com/t/choicescript-full-tutorial-finished/16130) by @Lglasser Dedicated ChoiceScript Development Tools You do not need to download or update ChoiceScript when using either of these tools. [Chronicler](https://forum.choiceofgames.com/t/tool-chronicler-choicescript-visual-code-editor/6811) Visual Code Editor by @Ben…

---

<div class="post-metadata">

**Author:** ![jacobrien](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jacobrien/32/174513_2.png) [@jacobrien](https://forum.choiceofgames.com/u/jacobrien)\
**Post date:** [July 28, 2022, 2:16pm UTC](https://forum.choiceofgames.com/t/how-to-start-a-new-paragraph-without-messing-up-the-code/122705/3 "2022-07-28T14:16:16Z")

</div>

Yes this helps thank you so much

---

<div class="post-metadata">

**Author:** ![Havenstone](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/havenstone/32/198451_2.png) [@Havenstone](https://forum.choiceofgames.com/u/Havenstone)\
**Post date:** [July 28, 2022, 4:13pm UTC](https://forum.choiceofgames.com/t/how-to-start-a-new-paragraph-without-messing-up-the-code/122705/4 "2022-07-28T16:13:24Z")

</div>

Which do you use when you’re manually indenting text-- spaces or tabs? Sounds like the problem might be that whatever program you’re coding in has its auto-indent set to use the opposite of what you’re using, so when you hit enter you’re creating a mix of spaces/tabs and getting the resulting error message.

---

<div class="post-metadata">

**Author:** ![cup\_half\_empty](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cup_half_empty/32/273983_2.png) [@cup\_half\_empty](https://forum.choiceofgames.com/u/cup_half_empty)\
**Post date:** [July 28, 2022, 4:59pm UTC](https://forum.choiceofgames.com/t/how-to-start-a-new-paragraph-without-messing-up-the-code/122705/5 "2022-07-28T16:59:00Z")

</div>

> [@Loudbeat](#):
>
> for a new paragraph without a space in between you can use the `*line_break` command

I’m not sure but I don’t think this does creates a new paragraph. It just introduces a `<br />` in the middle of the paragraph, iirc.

---

<div class="post-metadata">

**Author:** ![Loudbeat](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/loudbeat/32/115975_2.png) [@Loudbeat](https://forum.choiceofgames.com/u/Loudbeat)\
**Post date:** [July 28, 2022, 5:07pm UTC](https://forum.choiceofgames.com/t/how-to-start-a-new-paragraph-without-messing-up-the-code/122705/6 "2022-07-28T17:07:22Z")

</div>

Maybe it’s not the proper definition of paragraph, but he said:

> [@jacobrien](#):
>
> I use enter to start a new paragraph when someone else starts speaking

And I assumed he was trying to start a new line just pressing “enter”. And what that does is continuing the text as if it were the same paragraph. `*line_break` should work as we normally use the “enter” key to go to the next line. What did I mess up?

---

<div class="post-metadata">

**Author:** ![cup\_half\_empty](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cup_half_empty/32/273983_2.png) [@cup\_half\_empty](https://forum.choiceofgames.com/u/cup_half_empty)\
**Post date:** [July 28, 2022, 5:21pm UTC](https://forum.choiceofgames.com/t/how-to-start-a-new-paragraph-without-messing-up-the-code/122705/7 "2022-07-28T17:21:34Z")

</div>

It’s going to work, but a) the line space will be different. b) Page scrappers will see it as a single paragraph.

This is only a technicality. If you’re curious, this is the difference in the final output.

This:

```nohighlight
Text

Text

```

Becomes:

```nohighlight
<p>Text</p>
<p>Text</p>

```

While, this:

```nohighlight
Text
*line_break
Text

```

Becomes this:

```nohighlight
<p>Text<br />Text</p>

```

---

<div class="post-metadata">

**Author:** ![Loudbeat](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/loudbeat/32/115975_2.png) [@Loudbeat](https://forum.choiceofgames.com/u/Loudbeat)\
**Post date:** [July 28, 2022, 5:28pm UTC](https://forum.choiceofgames.com/t/how-to-start-a-new-paragraph-without-messing-up-the-code/122705/8 "2022-07-28T17:28:54Z")

</div>

And which one is the proper way I should use to write for a choicescript game?

---

<div class="post-metadata">

**Author:** ![cup\_half\_empty](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cup_half_empty/32/273983_2.png) [@cup\_half\_empty](https://forum.choiceofgames.com/u/cup_half_empty)\
**Post date:** [July 28, 2022, 5:32pm UTC](https://forum.choiceofgames.com/t/how-to-start-a-new-paragraph-without-messing-up-the-code/122705/9 "2022-07-28T17:32:05Z")

</div>

If you can, prefer:

```nohighlight
Text

Text

```

---

<div class="post-metadata">

**Author:** ![Loudbeat](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/loudbeat/32/115975_2.png) [@Loudbeat](https://forum.choiceofgames.com/u/Loudbeat)\
**Post date:** [July 28, 2022, 5:33pm UTC](https://forum.choiceofgames.com/t/how-to-start-a-new-paragraph-without-messing-up-the-code/122705/10 "2022-07-28T17:33:52Z")

</div>

That for a new paragraph, and for a new line just the `*line_break`?

---

<div class="post-metadata">

**Author:** ![cup\_half\_empty](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cup_half_empty/32/273983_2.png) [@cup\_half\_empty](https://forum.choiceofgames.com/u/cup_half_empty)\
**Post date:** [July 28, 2022, 5:34pm UTC](https://forum.choiceofgames.com/t/how-to-start-a-new-paragraph-without-messing-up-the-code/122705/11 "2022-07-28T17:34:31Z")

</div>

That’s right.

---

<div class="post-metadata">

**Author:** ![Loudbeat](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/loudbeat/32/115975_2.png) [@Loudbeat](https://forum.choiceofgames.com/u/Loudbeat)\
**Post date:** [July 28, 2022, 5:36pm UTC](https://forum.choiceofgames.com/t/how-to-start-a-new-paragraph-without-messing-up-the-code/122705/12 "2022-07-28T17:36:22Z")

</div>

Ok, nice. I don’t need to change the entire book then. That’s a relief jaja. Thanks!
