Changeset 38503 for main/trunk
- Timestamp:
- 2023-12-19T21:57:39+13:00 (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/bin/script/gti.pl
r38500 r38503 738 738 739 739 # Make sure the submitted source chunk matches the source file chunk 740 if ($source_file_key_to_submission_mapping{$chunk_key} ne $source_file_key_to_text_mapping{$chunk_key}741 && $source_file_key_to_submission_mapping{$chunk_key} ne &unmake_text_xml_safe( $source_file_key_to_text_mapping{$chunk_key})) {740 if ($source_file_key_to_submission_mapping{$chunk_key} ne trim($source_file_key_to_text_mapping{$chunk_key}) 741 && $source_file_key_to_submission_mapping{$chunk_key} ne &unmake_text_xml_safe(trim($source_file_key_to_text_mapping{$chunk_key}))) { 742 742 #if (&unmake_text_xml_safe($source_file_key_to_submission_mapping{$chunk_key}) ne &unmake_text_xml_safe($source_file_key_to_text_mapping{$chunk_key})) { 743 743 #&log_message("**** submission source:\n|$source_file_key_to_submission_mapping{$chunk_key}|\n"); … … 769 769 } 770 770 771 772 sub trim 773 { 774 my $s = shift(@_); 775 $s =~ s/^\s+|\s+$//g; 776 return $s 777 } 771 778 772 779 sub create_glihelp_zip_file
Note:
See TracChangeset
for help on using the changeset viewer.