removed double-lineendings from templates