Collapse header lines