Changeset 6377


Ignore:
Timestamp:
2004-01-09T12:52:07+13:00 (20 years ago)
Author:
cs025
Message:

Trim 'ctrl-m' characters from lines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/util/GS2TextFileHandler.java

    r6100 r6377  
    9999    this.line.trim();
    100100      }
     101      if (this.line.length() > 0 &&
     102      this.line.charAt(this.line.length() - 1) == (char) 13) {
     103    this.line = this.line.substring(0, this.line.length()-1);
     104    this.line.trim();
     105      }
    101106    } while (this.content != null && this.line != null && this.line.length() == 0);
    102107   
Note: See TracChangeset for help on using the changeset viewer.