inkgd icon indicating copy to clipboard operation
inkgd copied to clipboard

Glue is trimming whitespaces in the end of line

Open bkmeneguello opened this issue 4 years ago • 1 comments

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: 3127d994106fa00e93430a9153f1b2fa3cc287ae

Additional context I think is something here

bkmeneguello avatar Mar 01 '21 00:03 bkmeneguello

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 avatar Nov 27 '21 22:11 ephread