diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-03 00:46:05 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-03 00:46:05 +0000 |
commit | 70c2c81c4794f0a090635a99d1c69a0be654f3f8 (patch) | |
tree | 02f2765bebf71c9d8ef0658dd2133243122d8af4 /contrib/texi2pod.pl | |
parent | b948a0a400ba1228260b1a427ff24ef3ca6f855a (diff) | |
download | gcc-70c2c81c4794f0a090635a99d1c69a0be654f3f8.tar.gz |
gcc:
* doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
doc/rtl.texi, doc/tm.texi: Improve formatting. Improve
documentation of -std and -Wwrite-strings.
contrib:
* texi2pod.pl: Handle @r inside @item.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43718 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib/texi2pod.pl')
-rwxr-xr-x | contrib/texi2pod.pl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/contrib/texi2pod.pl b/contrib/texi2pod.pl index d70b44880a2..7a930eed595 100755 --- a/contrib/texi2pod.pl +++ b/contrib/texi2pod.pl @@ -279,9 +279,6 @@ sub postprocess s/\@w\{([^\}]*)\}/S<$1>/g; s/\@(?:dmn|math)\{([^\}]*)\}/$1/g; - # Handle @r inside bold. - 1 while s/B<((?:[^<>]|I<[^<>]*>)*)R<([^>]*)>/B<$1>${2}B</g; - # Cross references are thrown away, as are @noindent and @refill. # (@noindent is impossible in .pod, and @refill is unnecessary.) # @* is also impossible in .pod; we discard it and any newline that @@ -303,9 +300,11 @@ sub postprocess s/\@uref\{([^\},]*),([^\},]*),([^\},]*)\}/$3/g; # Turn B<blah I<blah> blah> into B<blah> I<blah> B<blah> to - # match Texinfo semantics of @emph inside @samp. + # match Texinfo semantics of @emph inside @samp. Also handle @r + # inside bold. s/</</g; s/>/>/g; + 1 while s/B<((?:[^<>]|I<[^<>]*>)*)R<([^>]*)>/B<$1>${2}B</g; 1 while (s/B<([^<>]*)I<([^>]+)>/B<$1>I<$2>B</g); 1 while (s/I<([^<>]*)B<([^>]+)>/I<$1>B<$2>I</g); s/[BI]<>//g; |