pysolver_view.reporting.layout module

pysolver_view.reporting.layout module#

Width-bounded plain-text tables that preserve complete cell contents.

pysolver_view.reporting.layout.table_report(title, headers, rows, columns, width, notes=())[source]#

Render aligned cells with complete wrapped names and bounded line widths.

The first column is left aligned; remaining columns are right aligned. Continuation lines keep their original column, including numeric cells whose unusual values exceed the normal scientific-notation field width. Only supplied text is formatted; there is no model or diagnostic access.

pysolver_view.reporting.layout.validate_report_width(width)[source]#

Return a character width large enough for the report’s numeric columns.

pysolver_view.reporting.layout.wrap_text(text, width)[source]#

Wrap notes and titles without discarding long words or identifiers.