My intent is to have markup in the source file like
The first president of the US was {{< person "George Washington" >}}.
and a shortcode like
<span style="background-color: #ffbfff;">{{.Get 0}}</span>
and have the result have a colorized name of George, followed by the trailing period. However, the code that gets created puts that span on a single line of HTML and the trailing period goes on a separate line of HTML and there’s an added space.
If I go to some trouble to remove the last newline from the shortcode source code, it all works as planned, the added newline doesn’t get inserted in the page source, and everything is hunky dory.