Changeset 26105


Ignore:
Timestamp:
2012-08-14T17:36:05+12:00 (12 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.

File:
1 edited

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;
Note: See TracChangeset for help on using the changeset viewer.