Changeset 26105

Show
Ignore:
Timestamp:
14.08.2012 17:36:05 (7 years ago)
Author:
ak19
Message:

When GLI exited, comments inside format statements would each time keep gaining new lines near the comment symbols (one near the start and one near the end). This was because the xmlNodeToString method was not trimming the comment values for whitespace before appending additional newlines.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/util/XMLTools.java

    r26018 r26105  
    10051005            if (e.getNodeValue() != "") 
    10061006            { 
    1007                 sb.append("<!--\n" + e.getNodeValue() + "\n-->\n"); 
     1007                sb.append("<!--\n" + e.getNodeValue().trim() + "\n-->\n"); 
    10081008            } 
    10091009            return;