From: <and...@us...> - 2011-01-13 00:22:53
|
Revision: 11491 http://plplot.svn.sourceforge.net/plplot/?rev=11491&view=rev Author: andrewross Date: 2011-01-13 00:22:47 +0000 (Thu, 13 Jan 2011) Log Message: ----------- Add support for simplelist in api2swigdoc script. Fixes problem with formatting of help for plcol0. Modified Paths: -------------- trunk/doc/docbook/bin/api2swigdoc.pl Modified: trunk/doc/docbook/bin/api2swigdoc.pl =================================================================== --- trunk/doc/docbook/bin/api2swigdoc.pl 2011-01-12 14:04:49 UTC (rev 11490) +++ trunk/doc/docbook/bin/api2swigdoc.pl 2011-01-13 00:22:47 UTC (rev 11491) @@ -141,6 +141,16 @@ elsif ($tag eq "xref") { $ret .= "the PLplot documentation"; } + elsif ($tag eq "simplelist") { + my $ncols = $e->getAttributeNode ("columns")->getValue; + my $children = $e->getElementsByTagName ("member"); + my $nc = $children->getLength; + $ret .= join ("", map { + ($_ % $ncols ? "\t" : "\n") + . process_node ($children->item ($_)) + . " "; + } (0 .. ($nc - 1))) . "\n\n"; + } elsif ($tag eq "varlistentry") { $ret .= "\n" . process_node ($e); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |