Slightly improved quote collapsing