For this reason I used a time ago regular expressions to find the last line of the note and replace it with a new line and a tag.
So, in Notepad++ it would look like this:

Using in combination with “Replace in Files” it’s very powerfull when applying on all files in a directory.
Don’t forget to backup your files first.