make templates produce properly aligned output