Description
A delivered Ivy file has an incomplete last line, i.e. missing the final newline.
This is a little bit annoying, since it may confuse tools like diff(1) or vi(1).
The following trivial patch fixes this by writing a newline right at endDocument():
— src/java/fr/jayasoft/ivy/xml/XmlModuleDescriptorUpdater.java.orig 2005-09-16 11:14:00.000000000 +0200
+++ src/java/fr/jayasoft/ivy/xml/XmlModuleDescriptorUpdater.java 2006-01-10 14:29:19.000000000 +0100
@@ -159,6 +159,8 @@
}
public void endDocument() throws SAXException
{ + // Avoid incomplete last line. + out.println(); out.flush(); out.close(); }