mirror of
https://github.com/mattermost/mattermost.git
synced 2026-08-26 21:27:40 -05:00
* Fix flaky table conversion for colspan section rows The mikepenz flaky_summary HTML contains per-suite section-header rows (<td colspan="2"><strong>...</strong></td>) that markdown tables cannot represent. The sed pipeline only matched bare <td>/<th> with text-only content, so those rows leaked raw HTML and broke the rendered table in Mattermost. Replace the sed/awk conversion with an inline python3 HTML parser that keeps only rows matching the header column count (dropping the section-header rows), unescapes HTML entities, escapes in-cell pipes, and emits a flat markdown table. Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com> * Collapse whitespace in flaky table cells str.strip() only trims leading/trailing whitespace, so an embedded newline (including one decoded from an entity like ) would remain and break the single-line markdown table row. Collapse all internal whitespace to single spaces when rendering each cell. Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>