def _generate_row_str(
        self,
        cells: Sequence[Union[_TableHeaderCell, _TableDataCell]],
        column_widths: List[int],
    ) -> str:
        """
        Generates the string for a single row based on the cell contents and column widths.
        """
        row_content = "|".join(
            " {} ".format(cell.content.ljust(width) if cell.content else " " * width)
            for cell, width in zip(cells, column_widths)
        )
        return f"|{row_content}|"

        Generates the string for a single row based on the cell contents and column widths.
        
src/openparse/tables/table_transformers/schemas.py