finesse.utilities.text.add_linenos

finesse.utilities.text.add_linenos(linenos, lines)[source]

Add line numbers to the start of lines.

Parameters
linenossequence of int

The line numbers, in the same order as lines.

linessequence of str

The lines.

Returns
sequence of str

The lines with prepended line numbers.