Changeset 28798
- Timestamp:
- 2014-01-23T16:38:37+13:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/bin/script/convert_coll_from_gs2.pl
r28780 r28798 11 11 12 12 use colcfg; 13 use docprint; # for sub escape_text 13 14 use util; 14 15 use parsargv; … … 755 756 my ($writer, $old_format, $node_type) = @_; 756 757 757 if($convert_format_stmts) {758 759 758 # replace \' with ' 760 759 $old_format =~ s/\\\'/\'/g; 761 760 # replace \" with " 762 761 $old_format =~ s/\\\"/\"/g; 762 763 if($convert_format_stmts) { 764 763 765 #convert [] to <gsf:...> 764 766 # now handles nested {If} and {Or} … … 791 793 # so that formatconverter can convert them and users can oversee the conversion in GLI, 792 794 # but nest the GS2 statements here in an xml tag that won't be processed by GS3 795 796 $old_format = &docprint::escape_text($old_format); # escape html entities inside the format statement since the <br> and <p> may not be correct for xml 793 797 $old_format = "<gsf:format-gs2>" . $old_format . "</gsf:format-gs2>"; 798 794 799 } 795 800
Note:
See TracChangeset
for help on using the changeset viewer.