Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra leading spaces seem to affect the parsing of boolean conditions #919

Open
brutusyhy opened this issue Oct 29, 2024 · 0 comments
Open

Comments

@brutusyhy
Copy link

As I noted under a different issue, having leading spaces in a line could affect the parsing of boolean conditions inside curly brackets. Here's a simple test that demonstrates this issue:

        [Test()]
        public void TestLineBreakAfterChoiceLabel()
        {
            Story story1 = CompileString(@"
* (label) 
{true} choice text
");
            Story story2 = CompileString(@"
* (label) 
 {true} choice text
");
            story1.Continue();
            String result1 = story1.currentChoices[0].text; // "choice text"
            story2.Continue();
            String result2 = story2.currentChoices[0].text; // "true choice text"
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant