Ignore:
Timestamp:
2012-04-27T17:12:40+12:00 (12 years ago)
Author:
ak19
Message:

Dr Bainbridge modified gsprintf code to print text containing ampersand, less than and greater then with their entity values instead so that printing to STDERR from BEGIN statements (so far used only in PDFBoxConverter of the PDFBox extension) will play nicely with the XML generated for Pluginfo.pl. Pluginfo.pl has also been modified to use the correct gsprintf printing methods.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/pluginfo.pl

    r25167 r25499  
    130130    }
    131131    eval "\$$strVariable = \$value";
     132    }
     133
     134    if ($xml) {
     135    &gsprintf::set_print_freetext_for_xml();
    132136    }
    133137
     
    246250        push (@plugobj_list, $plugobj);
    247251    }
     252
     253    &gsprintf::set_print_xml_tags();
    248254    print STDERR "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
    249255    print STDERR "<PluginList length=\"" . scalar(@plugin_list) . "\">\n";
     
    270276    my $plugobj = &plugin::load_plugin_for_info ($plugin);
    271277    if ($xml) {
     278    &gsprintf::set_print_xml_tags();
    272279    $plugobj->print_xml_usage($header);
    273280    }
Note: See TracChangeset for help on using the changeset viewer.