Suppressing trailing newline for inserted templates

First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.

What I’m trying to do

Using the core Template plugin, whenever I manually insert a template, it automatically adds a newline at the end of the inserted string. Is there any way to change this behavior, ideally on a per-template basis, either with the core plugin or the Templater community plugin? It makes using Templates for inserting text snippets in a sentence cumbersome.

Things I have tried

Everything I search for finds issues about Templater inserting newlines at the start of files, which is not the plugin or issue I am dealing with.

Do you have a newline at the end of your template? Can you share an example template?

… that was in fact the issue; I had renamed my templates dir, which thus no longer matched the exclude I had configured in the Linter plugin, and the linter was thus inserting newlines at the end of each template whenever I did anything with them, including the templates for snippets that I had intentionally not included newlines in. :person_facepalming:

Thanks for asking the obvious question that I should have asked myself!