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

Glue is trimming whitespaces in the end of line #32

Open
bkmeneguello opened this issue Mar 1, 2021 · 1 comment
Open

Glue is trimming whitespaces in the end of line #32

bkmeneguello opened this issue Mar 1, 2021 · 1 comment
Labels
question Further information is requested

Comments

@bkmeneguello
Copy link

bkmeneguello commented Mar 1, 2021

Describe the bug
Whitespaces before glue marks are being trimmed.

To Reproduce
If I compile this ink:

Partial   <>
* line

It gives this (excerpt of) JSON:

"^Partial ",
"<>",
"\n",
[
    "ev",
    ...
    {
        "s": [
            "^line",
            ...
            null
        ]
    }
],
...

Notice there is a whitespace after "Partial ".

But when I load this with InkGD (latest from master) the whitespaces are trimmed.

Expected behavior
The whitespaces should be kept to allow concatenation with text from the selected choice.

Ink files
THe one above

Environment:

  • OS: Windows
  • Godot version: 3.2.3-vanilla
  • Inklecate version: 1.0.0
  • inkgd version: 3127d99

Additional context
I think is something here

@ephread
Copy link
Owner

ephread commented Nov 27, 2021

I suspect that's expected, because I see the same behaviour when running that code example through inklecate, but I may miss something. Can you confirm the behaviour is different between inklecate 1.0.0 and what's currently in main (which is compatible with Ink 1.0.0)?

@ephread ephread added the question Further information is requested label Nov 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants