Remove spaces before closing equation

Prevents building of pdf with pandoc.