Templater Whitespace

You could try this:

Seems you’ve tried these, but just to doublecheck:

A specific syntax exists for whitespace control:

  • An underscore _ at the beginning of a tag (<%_) will trim all > > whitespace before the command
  • An underscore _ at the end of a tag (_%>) will trim all >whitespace after the command
  • A dash - at the beginning of a tag (<%-) will trim one newline >before the command
  • A dash - at the end of a tag (-%>) will trim one newline after >the command.

https://silentvoid13.github.io/Templater/commands/whitespace-control.html?highlight=whitespace#whitespace-control