package sagan.tools.support;

import sagan.tools.Download;
import sagan.tools.Release;
import sagan.tools.ToolSuiteDownloads;

class ToolXmlConverter {

    public ToolSuiteDownloads convert(ToolSuiteXml toolSuiteXml, String toolSuiteName, String shortName) {
        ToolSuiteBuilder state = new ToolSuiteBuilder(shortName);

        for (Release release : toolSuiteXml.getReleases()) {
            if (!release.getName().startsWith(toolSuiteName)) {
	            continue;
            }
			state.setWhatsNew(release.getWhatsnew());
            for (Download download : release.getDownloads()) {
                state.addDownload(download);
            }
        }

        return state.build();
    }

}

@@ -445,17 +445,20 @@
 ame)) %7B%0A
-%09
+    
         
@@ -489,11 +489,20 @@
   %7D%0A
-%09%09%09
+            
 stat

Fix whitespace