Skip to content

Knot tags causing empty line before anything which isn't story content #974

@AfroSpartan

Description

@AfroSpartan

When using Knot tags, an empty line is added at the start of the knot when the first line is intended to be anything which isn't story content (eg. conditionals, brackets, variables).

This is using godot-ink, but based on how the structure changes in the preview when adding text before the non story content I'm not sure it's a bug with godot-ink.

Using the following code:

=== Approach ===
    # blacksmith
    # neutral
    # 40
    ~ temp randomGreeting = RANDOM(1,2)
    {randomGreeting == 1 and not greeted: Hail. Let us keep this brief. }
    {randomGreeting == 2 and not greeted: What work does thou require? }
    ~ greeted = true
    + [What do you do?]
        -> Tutorial
    + [I have work for you]
        -> Work
    -> END

Results in:

# blacksmith, neutral, 40

What work does thou require?

[What do you do?]

[I have work for you]

Instead of what I guessing should be:

What work does thou require?

# blacksmith, neutral, 40

[What do you do?]

[I have work for you]

I suspect this isn't intentional since when adding text between the tags and the variable, this changes to:

Added text line

# blacksmith, neutral, 40

What work does thou require?

[What do you do?]

[I have work for you]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions