The function ldif_sput already terminates the line with a newline character - we do not need to add another one when unwrapping a wrapped line.
@@ -228,7 +228,6 @@ slapi_ldif_put_type_and_value_with_options( char **out, const char *t, const cha
}
*dest++ = *src;
- *dest = '\n';
#else
ldif_put_type_and_value_with_options( out, (char *)t, (char *)val, vlen, options );