Skip to content

Commit c12081a

Browse files
committed
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.
1 parent 8dc3273 commit c12081a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

etc/ChangeLog

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2020-01-15 Simon Marchi <[email protected]>
2+
3+
* texi2pod.pl: Handle @t{...} tags.
4+
15
2018-06-19 Simon Marchi <[email protected]>
26

37
* configure.in: Remove AC_PREREQ.

etc/texi2pod.pl

+1
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ sub postprocess
381381
s/\@file\{([^\}]*)\}/F<$1>/g;
382382
s/\@w\{([^\}]*)\}/S<$1>/g;
383383
s/\@(?:dmn|math)\{([^\}]*)\}/$1/g;
384+
s/\@t\{([^\}]*)\}/$1/g;
384385

385386
# keep references of the form @ref{...}, print them bold
386387
s/\@(?:ref)\{([^\}]*)\}/B<$1>/g;

0 commit comments

Comments
 (0)