remove newline after #if or #foreach ..

bug fix for #32.