Ignore:
Timestamp:
2006-09-21T16:11:36+12:00 (18 years ago)
Author:
mdewsnip
Message:

Fixed a problem where the GLI would add extra spaces at the end of plugin and classify lines. Also turned off debug messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/CollectionConfiguration.java

    r12811 r12813  
    472472    String saved_collect_cfg_string = saved_collect_cfg_string_buffer.toString();
    473473    if (collect_cfg_string.equals(saved_collect_cfg_string)) {
    474         System.err.println("Collect.cfg file hasn't changed so no save necessary...");
     474        DebugStream.println("Collect.cfg file hasn't changed so no save necessary...");
    475475        return;
    476476    }
    477477
    478     System.err.println("Collect.cfg file has changed, saving now...");
     478    DebugStream.println("Collect.cfg file has changed, saving now...");
    479479
    480480    // If we're using the Local Library we must release the collection before writing to the collect.cfg file
     
    532532    text.append(TAB_CHARACTER);
    533533    text.append(command_element.getAttribute(TYPE_ATTRIBUTE));
    534     text.append(SPACE_CHARACTER);
    535534    NodeList option_elements = command_element.getElementsByTagName(OPTION_ELEMENT);
    536535    int option_elements_length = option_elements.getLength();
     
    538537        Element option_element = (Element) option_elements.item(j);
    539538        if(option_element.getAttribute(ASSIGNED_ATTRIBUTE).equals(TRUE_STR)) {
     539        text.append(SPACE_CHARACTER);
    540540        text.append(StaticStrings.MINUS_CHARACTER);
    541541        text.append(option_element.getAttribute(NAME_ATTRIBUTE));
     
    575575        }
    576576        value_str = null;
    577         if(j < option_elements_length - 1) {
    578             text.append(SPACE_CHARACTER);
    579         }
    580577        }
    581578        option_element = null;
     
    16241621        int option_elements_length = option_elements.getLength();
    16251622        if(option_elements_length > 0) {
    1626         text.append(SPACE_CHARACTER);
    16271623        for(int j = 0; j < option_elements_length; j++) {
    16281624            Element option_element = (Element) option_elements.item(j);
    16291625            if(option_element.getAttribute(ASSIGNED_ATTRIBUTE).equals(TRUE_STR)) {
     1626            text.append(SPACE_CHARACTER);
    16301627            text.append(StaticStrings.MINUS_CHARACTER);
    16311628            text.append(option_element.getAttribute(NAME_ATTRIBUTE));
     
    16461643            }
    16471644            value_str = null;
    1648             if(j < option_elements_length - 1) {
    1649                 text.append(SPACE_CHARACTER);
    1650             }
    16511645            }
    16521646            option_element = null;
Note: See TracChangeset for help on using the changeset viewer.