From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id 35EC73858435; Thu, 11 Nov 2021 01:16:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 35EC73858435 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Michael Frysinger To: cygwin-cvs@sourceware.org, newlib-cvs@sourceware.org Subject: [newlib-cygwin] texi2pod.pl: import support for @t{...} from gcc X-Act-Checkin: newlib-cygwin X-Git-Author: Simon Marchi X-Git-Refname: refs/heads/master X-Git-Oldrev: bc70b16620943b5120acf0fddbe2b37277650eb9 X-Git-Newrev: 957f0a864a624a98d3fa220ffb4b7030cd261505 Message-Id: <20211111011610.35EC73858435@sourceware.org> Date: Thu, 11 Nov 2021 01:16:10 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Nov 2021 01:16:10 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=957f0a864a624a98d3fa220ffb4b7030cd261505 commit 957f0a864a624a98d3fa220ffb4b7030cd261505 Author: Simon Marchi Date: Wed Jan 15 12:58:08 2020 -0500 texi2pod.pl: import support for @t{...} from gcc GDB's man page source (in gdb.texinfo) contains: @t{++} The @t{...} part is supposed to display the wrapped text with a fixed-width font. The texi2pod.pl script currently doesn't handle @t{...}, so it appears as-is in the man page: You can use GDB to debug programs written in C, C@t{++}, Fortran and Modula-2. gcc's version of texi2pod.pl (at contrib/texi2pod.pl in gcc's repo) replaces @t{...} with the wrapped text as-is, which I think is an acceptable behavior. The fixed-width font distinction is not really important for a man page, where the text will be displayed with whatever font the user is using. Import the line that does that from gcc's version. I have verified that there is no other, unwanted change in man pages generated in binutils' and GDB's doc, with this patch applied. etc/ChangeLog: * texi2pod.pl: Handle @t{...} tags. Diff: --- etc/ChangeLog | 4 ++++ etc/texi2pod.pl | 1 + 2 files changed, 5 insertions(+) diff --git a/etc/ChangeLog b/etc/ChangeLog index 78e9366e3..8742e2afc 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog @@ -1,3 +1,7 @@ +2020-01-15 Simon Marchi + + * texi2pod.pl: Handle @t{...} tags. + 2018-06-19 Simon Marchi * configure.in: Remove AC_PREREQ. diff --git a/etc/texi2pod.pl b/etc/texi2pod.pl index b0540338c..8d92bcf60 100644 --- a/etc/texi2pod.pl +++ b/etc/texi2pod.pl @@ -381,6 +381,7 @@ sub postprocess s/\@file\{([^\}]*)\}/F<$1>/g; s/\@w\{([^\}]*)\}/S<$1>/g; s/\@(?:dmn|math)\{([^\}]*)\}/$1/g; + s/\@t\{([^\}]*)\}/$1/g; # keep references of the form @ref{...}, print them bold s/\@(?:ref)\{([^\}]*)\}/B<$1>/g;