strip trailing spaces
add style file for template