The WWP encodes line numbers in the original text using <mw type="lineNum">. The <mw> element should be placed inside the <l> element to which it applies, with break(no) and align(right) as necessary. Delimiters should be encoded on the rend= attribute (preferably with a default in the <tagsdecl>).