- Timestamp:
- 2011-11-09T15:04:26+13:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/cdm/CollectionConfigXMLReadWrite.java
r24805 r24806 640 640 { // not an empty format statement 641 641 String gsf_text = XMLTools.xmlNodeToStringWithoutIndenting(format); 642 643 /* 644 * if (gsf_text.startsWith("<") && (gsf_text.indexOf("<") != 645 * gsf_text.lastIndexOf("<"))) { gsf_text = 646 * gsf_text.substring(gsf_text.indexOf("<gsf"), 647 * gsf_text.indexOf(StaticStrings.FORMAT_END_TAG)); } 648 */ 642 643 //We don't want the <format> elements in the string 644 int startFormatIndex = gsf_text.indexOf(StaticStrings.FORMAT_START_TAG) + StaticStrings.FORMAT_START_TAG.length(); 645 int endFormatIndex = gsf_text.lastIndexOf(StaticStrings.FORMAT_END_TAG); 646 gsf_text = gsf_text.substring(startFormatIndex, endFormatIndex); 649 647 650 648 XMLTools.setNodeText(format_element, gsf_text);
Note:
See TracChangeset
for help on using the changeset viewer.