Ignore:
Timestamp:
06/06/08 16:42:37 (16 years ago)
Author:
ra33
Message:

Added a couple of tests for AttributeUtils class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/AttributeUtils.java

    r88 r95  
    625625                        return "";
    626626
     627                int lineSeparator = toStrip.indexOf(Character.LINE_SEPARATOR);
     628                if(lineSeparator > 0){
     629                        toStrip = toStrip.substring(0,lineSeparator);
     630                }
     631               
    627632                int ind = toStrip.lastIndexOf(SEPARATOR_CHAR);
    628633
     
    634639                        }
    635640                        // It is a value with no attribute.
    636                         return toStrip;
     641                        return toStrip.trim();
    637642                }
    638643
     
    663668        }
    664669
     670        /**
     671         *
     672         * @param text
     673         * @param value
     674         */
    665675        public static void setSingleValue(Text text, String value) {
    666676                assert (value != null);
Note: See TracChangeset for help on using the changeset viewer.