fix #32: trim newline when #if end with blank space newline