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

Unexpected line break generated by the space between bracket and the arrow #860

Closed
cyanlink opened this issue Aug 27, 2023 · 1 comment
Closed

Comments

@cyanlink
Copy link

See: inkle/ink-unity-integration#193
It turned out that the culprit is the space between the bracket and the arrow. Such space will be considered as contents! Such spacing is very common amongst other programming languages for formatting purposes.
e.g. :

[Option One] -> helloworldknot ->

The space after right bracket will be considered a content line, generating a "\n" line in the output JSON.
Possible solution:
ignore empty tokens or tokens containing only invisible characters, do not treat them as content blocks.

@joningold
Copy link
Member

The ink engine produces empty lines frequently as part of its processing steps; your code should skip them as part of your basic Continue() loop.

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

2 participants