| Summary: | Wrong rendering of tables in man pages | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] kio-extras | Reporter: | nilskemail+kde |
| Component: | default | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 25.08.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/network/kio-extras/-/commit/d95236c45ad993da27be1a0ace809f8205587404 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | Screenshot of the wrongly rendered table | ||
Opening this as "kate man:/systemd.exec" I was able to confirm that the rowspan HTML attribute is not correctly calculated (it is 2 but should be 3) A possibly relevant merge request was started @ https://invent.kde.org/network/kio-extras/-/merge_requests/468 Git commit d95236c45ad993da27be1a0ace809f8205587404 by Albert Astals Cid. Committed on 07/11/2025 at 10:24. Pushed by aacid into branch 'master'. man2html: Fix calculating rowspan The old code rowspan was at most ever 2 since we're going back in rows and doing ++ to the previous row when we find a ^ The fix is to not do ++ to the previous row but to set the previous row rowspan to the current row rowspan + 1, this way we can accummulate rowspan as needed M +1 -1 man/man2html.cpp https://invent.kde.org/network/kio-extras/-/commit/d95236c45ad993da27be1a0ace809f8205587404 |
Created attachment 185231 [details] Screenshot of the wrongly rendered table SUMMARY Some tables in man pages are rendered wrong after the HTML conversion STEPS TO REPRODUCE 1. Open man:systemd.exec(5) 2. Go to "Table 6. Summary of possible service result variable values" OBSERVED RESULT The "watchdog" cell in the leftmost column is two rows high and the rightmost column has an empty cell EXPECTED RESULT The "watchdog" cell should span three rows thus pushing the row below one to the right and filling the empty cell SOFTWARE/OS VERSIONS Operating System: Fedora Linux 42 KDE Plasma Version: 6.4.5 KDE Frameworks Version: 6.18.0 Qt Version: 6.9.2 Kernel Version: 6.16.7-200.fc42.x86_64 (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 7840U w/ Radeon 780M Graphics Memory: 32 GiB of RAM (27.2 GiB usable) Graphics Processor: AMD Radeon 780M Graphics ADDITIONAL INFORMATION