Trim out newline in XML only when not pretty printed