You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Recently (since updating to 1.0+??) user defined template replacements have a new-line automatically appended, breaking uses where the template is inserted in the middle of a line of other text, for example using the echo template from the help doc:
<% tp.user.echo() %> <% tp.user.echo() %>
Get's replaced as:
I love templater
I love templater
Expected behavior
Previously user defined templates were consistent with internal templates, e.g. <% tp.date.now() %> <% tp.date.now() %>
gets replaced as:
2021-04-14 2021-04-14
The text was updated successfully, but these errors were encountered:
Hey @rummers, this has been discussed in #92, but actually I think you're right, I'll trim the newline at the end of a user command.
This is more natural and makes more sense.
Plugin informations:
Describe the bug
Recently (since updating to 1.0+??) user defined template replacements have a new-line automatically appended, breaking uses where the template is inserted in the middle of a line of other text, for example using the echo template from the help doc:
<% tp.user.echo() %> <% tp.user.echo() %>
Get's replaced as:
Expected behavior
Previously user defined templates were consistent with internal templates, e.g.
<% tp.date.now() %> <% tp.date.now() %>
gets replaced as:
2021-04-14 2021-04-14
The text was updated successfully, but these errors were encountered: