Handle linenums in mixed lines

i.e. groups of lines where not all lines contain a linenum