remove trailing whitespace; add a trailing line ending to log4j.properties