From: Mingjie Xing Date: Mon, 11 Aug 2014 07:29:41 +0000 (+0000) Subject: texi2pod.pl (postprocess): Move command process for '@sc' to the front of '@dfn'. X-Git-Tag: releases/gcc-5.1.0~5561 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6f853fd4536b85da53ebe9897ecbce22602304f8;p=thirdparty%2Fgcc.git texi2pod.pl (postprocess): Move command process for '@sc' to the front of '@dfn'. * texi2pod.pl (postprocess): Move command process for '@sc' to the front of '@dfn'. Add a new command process for '@t{...}', just print the content. From-SVN: r213808 --- diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 8060536ad294..e2e89ebeb88e 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,9 @@ +2014-08-11 Mingjie Xing + + * texi2pod.pl (postprocess): Move command process for '@sc' to the + front of '@dfn'. Add a new command process for '@t{...}', just print + the content. + 2014-07-21 Trevor Saunders Yury Gribov diff --git a/contrib/texi2pod.pl b/contrib/texi2pod.pl index 55b6ba752279..eba1bcaa3cff 100755 --- a/contrib/texi2pod.pl +++ b/contrib/texi2pod.pl @@ -389,15 +389,16 @@ sub postprocess # Formatting commands. # Temporary escape for @r. s/\@r\{([^\}]*)\}/R<$1>/g; + s/\@sc\{([^\}]*)\}/\U$1/g; s/\@(?:dfn|var|emph|cite|i)\{([^\}]*)\}/I<$1>/g; s/\@(?:code|kbd)\{([^\}]*)\}/C<$1>/g; s/\@(?:samp|strong|key|option|env|command|b)\{([^\}]*)\}/B<$1>/g; - s/\@sc\{([^\}]*)\}/\U$1/g; s/\@acronym\{([^\}]*)\}/\U$1/g; s/\@file\{([^\}]*)\}/F<$1>/g; s/\@w\{([^\}]*)\}/S<$1>/g; s/\@(?:dmn|math)\{([^\}]*)\}/$1/g; s/\@\///g; + s/\@t\{([^\}]*)\}/$1/g; # keep references of the form @ref{...}, print them bold s/\@(?:ref)\{([^\}]*)\}/B<$1>/g;