fix line return when inside headings

https://www.pivotaltracker.com/story/show/59007722