From 6bc890a92913f0314622cfee8bf343c6cb7e1ff3 Mon Sep 17 00:00:00 2001 From: Kesara Rathnayake Date: Thu, 14 Nov 2024 23:48:31 +1300 Subject: [PATCH] fix(text): Fix truncated text issue in cells with rowspan Fixes #1155 --- xml2rfc/writers/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml2rfc/writers/text.py b/xml2rfc/writers/text.py index 47261ff7..94a3b7fb 100644 --- a/xml2rfc/writers/text.py +++ b/xml2rfc/writers/text.py @@ -4179,7 +4179,7 @@ def set_colwidths(cells, rows, cols): k, l = cell.origin hspan = cell.rowspan+k-i if cell.rowspan else minspan lines = len(cell.wrapped) if cell.wrapped else 0 - if hspan == minspan and lines > maxlines: + if lines > maxlines: maxlines = lines for j in range(cols): cells[i][j].lines = maxlines