Changeset 206 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/structures/SimulationScript.java


Ignore:
Timestamp:
02/03/2020 04:01:55 PM (6 years ago)
Author:
jdalbey
Message:

Modify prettyprint code to prepend xml header lines AFTER the pretty printing to fix #239. Removes incident_script.dtd from trunk as it isn't needed for xml save anymore.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/scriptbuilder/structures/SimulationScript.java

    r203 r206  
    353353             
    354354        } 
    355          
    356          
    357     } 
     355    } 
     356 
    358357    @Override 
    359358    public String toXML() 
    360359    { 
    361360        ArrayList<TimeSlice> slices = arrangeAllSlices(); 
    362         String output = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"; 
    363         output += XMLBuilder.externalDTD(); 
     361        String output = ""; 
    364362        output += XMLBuilder.openTag(ELEMENT.TMC_SCRIPT.tag + " title=\"" + this.title + "\""); 
    365363 
Note: See TracChangeset for help on using the changeset viewer.