aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMatthias Klose <doko@debian.org>2007-02-16 01:02:57 +0000
committerMatthias Klose <doko@gcc.gnu.org>2007-02-16 01:02:57 +0000
commitd0fc3f065426715057a617c15858384e46a07016 (patch)
treea129052e5451e99d0df19e0df38f748e859fb5b6 /contrib
parent73663bb75e3240bee70f6c33223263298a03ecd7 (diff)
downloadgcc-d0fc3f065426715057a617c15858384e46a07016.zip
gcc-d0fc3f065426715057a617c15858384e46a07016.tar.gz
gcc-d0fc3f065426715057a617c15858384e46a07016.tar.bz2
texi2pod.pl: Handle @subsubsection, ignore @anchor.
2007-02-16 Matthias Klose <doko@debian.org> * texi2pod.pl: Handle @subsubsection, ignore @anchor. From-SVN: r122026
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog4
-rwxr-xr-xcontrib/texi2pod.pl5
2 files changed, 9 insertions, 0 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 7405f44..5353552 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,7 @@
+2007-02-16 Matthias Klose <doko@debian.org>
+
+ * texi2pod.pl: Handle @subsubsection, ignore @anchor.
+
2007-02-10 Hans-Peter Nilsson <hp@axis.com>
* test_summary (configflags): Adjust for changes in the
diff --git a/contrib/texi2pod.pl b/contrib/texi2pod.pl
index 2791cdd..e7b983b 100755
--- a/contrib/texi2pod.pl
+++ b/contrib/texi2pod.pl
@@ -254,6 +254,8 @@ while(<$inf>) {
and $_ = "\n=head2 $1\n";
/^\@subsection\s+(.+)$/
and $_ = "\n=head3 $1\n";
+ /^\@subsubsection\s+(.+)$/
+ and $_ = "\n=head4 $1\n";
# Block command handlers:
/^\@itemize(?:\s+(\@[a-z]+|\*|-))?/ and do {
@@ -400,6 +402,9 @@ sub postprocess
s/\@gol//g;
s/\@\*\s*\n?//g;
+ # Anchors are thrown away
+ s/\@anchor\{(?:[^\}]*)\}//g;
+
# @uref can take one, two, or three arguments, with different
# semantics each time. @url and @email are just like @uref with
# one argument, for our purposes.