Fix minor bug in tagging code

The output, while still commented out, contained a newline before the
closing anchor-tag. Chomping the variable fixes this.