managen: reset text mode at end of table marker

It previously mostly ignored it which lead to bad format after a table
has ended with "##".

Closes #18139
This commit is contained in:
Daniel Stenberg 2025-08-01 18:03:36 +02:00
parent 2bad773b30
commit 18e00c8ed0
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 15 additions and 12 deletions

View file

@ -409,7 +409,9 @@ sub render {
if($tablemode) {
# end of table
push @desc, ".RE\n.IP\n" if($manpage);
push @desc, "\n" if(!$manpage);
$tablemode = 0;
$level = 0;
}
$header = 1;
next;