YarnSpinnerTool/YarnSpinner-Unity

Indent/Dedent Issue With Unity Add Line Tags

virtualosus opened this issue · 3 comments

What is the current behavior?
When I add line tags to my Yarn script from Unity, it is adding <indent to 4> and <dedent from 4> on my jumps and sets within my options

Please provide the steps to reproduce, and if possible a minimal demo of the problem:
Write Yarn script - create options - modify variable on option select - add line tags in Unity - <indent to 4> and <dedent from 4> added to option in Yarn script

55

add line tags in Unity....

56

What is the expected behavior?
Not have the extra characters applied to Yarn script, only line tags

Please tell us about your environment:

  • Yarn Spinner Version: 2.2.3
  • Unity Version: 2021.3.13f1

Other information

57

58

vlanf commented

+1

I have encountered the same problem and it is very frustrating to manually remove all these indent/dedent lines.

Also it corrupts lines with set/declare keyword:
<<declare $Apologize = false as bool>> -> <<declare $Apologize=falseasbool>>
<<set $MasterSearch to false>> -> <<set $MasterSearchtofalse>>

This is affecting me too. Hoping a fix can be put in soon!

hmm this was meant to close when YarnSpinnerTool/YarnSpinner#343 was closed