Changeset 1039 for library/doc/toolbox_doc
- Timestamp:
- 06/04/10 13:58:11 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/doc/toolbox_doc/filter_annotated.pl
r1007 r1039 31 31 32 32 my $html = HTML::TreeBuilder->new(); 33 $html->store_comments(1); 33 34 $html->parse_file($filename); 34 35 my $body = $html->content_array_ref()->[1]; … … 48 49 49 50 $i = 0; 51 my @to_delete; 50 52 while (my $node = $table->content_array_ref()->[$i++]) { 51 53 #;;print_content($node); … … 53 55 ->content_array_ref()->[0] #a 54 56 ->content_array_ref()->[0]; #bdm::ARX 55 ;;;print STDERR "$class\n";56 57 57 ;;;map {print STDERR " $_\n"} grep {$_ eq $class} @classes; 58 #;;map {print STDERR " $_\n"} grep {$_ eq $class} @classes; 59 #;;print STDERR "$class\n"; 58 60 59 next if grep {$_ eq $class} @classes; 61 if (grep {$_ eq $class} @classes) { 62 ;;;print "$class is in @classes\n"; 63 next; 64 }; 60 65 61 ;;;print STDERR "Hey! I passed after the grep!\n"; 66 #;;print STDERR "$class will be detached\n"; 67 #;;print STDERR $node->tag() . ' ' . $node->{_parent}->tag() . "\n"; 62 68 63 $node->detach();69 push @to_delete, $node; 64 70 } 71 72 $_->delete() for @to_delete; 73 74 #;;print_content($table); 65 75 66 76 #print the result