From: <ai...@us...> - 2008-09-25 22:38:01
|
Revision: 8825 http://plplot.svn.sourceforge.net/plplot/?rev=8825&view=rev Author: airwin Date: 2008-09-25 22:37:50 +0000 (Thu, 25 Sep 2008) Log Message: ----------- Generalize script to allow <part> tags to have attributes. Modified Paths: -------------- trunk/doc/docbook/bin/info-clean.pl Modified: trunk/doc/docbook/bin/info-clean.pl =================================================================== --- trunk/doc/docbook/bin/info-clean.pl 2008-09-25 19:00:15 UTC (rev 8824) +++ trunk/doc/docbook/bin/info-clean.pl 2008-09-25 22:37:50 UTC (rev 8825) @@ -5,10 +5,10 @@ while (<>) { if (/(<!DOCTYPE.*)\[(.*)/) { print "$1 \"foobar\" [$2\n" ; next} - if (/(.*)<part>(.*)/) { + if (/(.*)<part(.*)>(.*)/) { $inpart = 1; - print "$1<!--<part>"; - $_ = "$2\n"; + print "$1<!--<part$2>"; + $_ = "$3\n"; redo; } if ($inpart and m{(.*)</title>(.*)}) { @@ -37,7 +37,7 @@ } # The hacks below are necessary because docbook2texixml does - # not know hot to include system entities + # not know how to include system entities if (m{(.*)<!ENTITY % ([^\s]+) SYSTEM "([^"]+)">(.*)}) { $sysent{$2} = $3; print "$1"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |