finesse.utilities.text

Text utilities.

Functions

add_linenos(linenos, lines)

Add line numbers to the start of lines.

format_bullet_list(items[, indent, bullet_char])

Format items into a bullet list.

format_section(header, body[, ruler, ruler_char])

Format text in sections.

ngettext(n, fsingle, fplural[, sub])

Get the singular or plural form of the specified messages based on n.

option_list(sequence[, final_sep])

Build a list from sequence with commas and a final "or".

stringify(item)

Recursively stringify item.

stringify_graph_gml(graph)

Convert the specified NetworkX graph to string representation using GML markup.