joplin / joplin/plugin-templates

New line inserted inconsistently at the beginning of a template

Open
#104 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
207
Forks
40
Avg merge
7d 16h
Merged PRs (30d)
2

Description

Hey, I am using the development version of this plugin, so I don't know if the issue only occurs there, but sometimes a new line is inserted before the content on a template with custom variables. I've tried to figure out, when it does or doesn't happen but I haven't been able to get the pattern.

At first I thought it happens whenever you iterate through a dropdown or boolean menu with the tab and arrow keys. However if you press the 'Enter' button manually, instead of using the enter key on the keyboard the new line is not inserted.

Because of that I thought that pressing the enter key may be the cause in general, but on a template that has a text or number field you can use the keyboard to enter without inserting a new line, if that field is the last one you interacted with.

So, maybe pressing the enter key on the keyboard is the issue in general, but the text or number fields somehow negate it?

It's not a huge issue, but I thought I would leave it here to track.

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.