If you put a minus sign at the end of the conditional block it won't create a newline and you won't need to put it all on one line.

```erb
<% if view['qtypes'] -%>    
QTypes <%= view['qtypes'] %>
<% end -%> 
```