YarnSpinnerTool / YarnSpinner

Yarn Spinner is a tool for building interactive dialogue in games!
https://yarnspinner.dev
MIT License
2.3k stars 201 forks source link

AddTagsToLines removes spaces between <<declare and <<set arguments #343

Closed dogboydog closed 1 year ago

dogboydog commented 1 year ago

What is the current behavior? Not sure if it's something I'm doing wrong but I'm seeing spaces between arguments in <<declare and <<set statements being removed when AddTagsToLines is called.

Before:
title: Hello
tags:
---
<<declare $man_said_hello to false as bool>>
Man: Hello
<<set $man_said_hello to true>>
===

After:
title: Hello
tags:
---
<<declare $man_said_hellotofalseasbool>>
Man: Hello #line:0169251
<<set $man_said_hellototrue>>
===

Please provide the steps to reproduce, and if possible a minimal demo of the problem:

Run this project and check the printed output https://github.com/dogboydog/YarnSpinnerLineTags

What is the expected behavior?

Spacing should be kept intact

Please tell us about your environment:

McJones commented 1 year ago

Possibly related to YarnspinnerTool/YarnSpinner-Unity#215, investigating now.

McJones commented 1 year ago

fixed in 7c7f4b6