inkle / inkle/ink

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

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

Description

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](https://github.com/paulloz/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]
```

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.