]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
texi2pod.pl (postprocess): Move command process for '@sc' to the front of '@dfn'.
authorMingjie Xing <mingjie.xing@gmail.com>
Mon, 11 Aug 2014 07:29:41 +0000 (07:29 +0000)
committerMingjie Xing <xmj@gcc.gnu.org>
Mon, 11 Aug 2014 07:29:41 +0000 (07:29 +0000)
* 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

contrib/ChangeLog
contrib/texi2pod.pl

index 8060536ad294f1b9a563cf73d32b77cb75c62034..e2e89ebeb88e2325bb52fa3b47682a92916590b9 100644 (file)
@@ -1,3 +1,9 @@
+2014-08-11  Mingjie Xing <mingjie.xing@gmail.com>
+
+       * 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  <tsaunders@mozilla.com>
            Yury Gribov  <y.gribov@samsung.com>
 
index 55b6ba75227996e25963c2f3c809dfb183ad923d..eba1bcaa3cffa78b46030b219d04fe7d68367658 100755 (executable)
@@ -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;