wrap ternary statements onto multple lines

![image](https://f.cloud.github.com/assets/1613972/1175236/6804f344-2155-11e3-9fe5-a6dc316ed18c.png)
![image](https://f.cloud.github.com/assets/1613972/1175239/78d2c570-2155-11e3-8f08-e0d655487008.png)