Computes correct line number in MML txt for page number