inkle / inkle/ink

Extra leading spaces seem to affect the parsing of boolean conditions

Open
#919 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.9k
Forks
540
PR merge metrics
No merged PRs in 30d

Description

[As I noted under a different issue](https://github.com/inkle/ink/issues/911#issuecomment-2444160887), 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"
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.