]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix @multitable handling in texi2pod.pl
authorRichard Sandiford <richard.sandiford@arm.com>
Sat, 7 Dec 2019 09:57:04 +0000 (09:57 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sat, 7 Dec 2019 09:57:04 +0000 (09:57 +0000)
commitb01d215df18ba753746a170125b883befe100d67
treecfa0480e677426ff1f561fb22f69bdb5583b4feb
parentae169f9e4cbb5a1f1767106d86f322d166d5189d
Fix @multitable handling in texi2pod.pl

While trying out Dennis's Armv8.6-A patch, I noticed that texi2pod.pl
didn't handle the new @multitable correctly.  There were two problems:

(1) @multitables nested in other @tables inherited the @item type from
    the enclosing @table.  Since the new @multitable is in a @table @samp,
    we applied @samp markup to the @multitable @items.  This in turn
    meant that it captured the @tab separator in the @item markup.

    Fixed by pushing an empty item code onto the stack.

(2) We didn't handle @headitem.  Fixed by enclosing it in italics,
    like we do for section headings.  This causes it to be underlined
    in the man output.

2019-12-07  Richard Sandiford  <richard.sandiford@arm.com>

contrib/
* texi2pod.pl: Handle @headitems in @multitables, printing them
in italics.  Push an empty item code onto the stack.

From-SVN: r279074
contrib/ChangeLog
contrib/texi2pod.pl