Note: the real issue is the white space you have after #end which end up in the content after velocity execution.