Fix prepend/append to not add new line separators.