I would like to use `sed` (I think?) to replace a pattern with file contents. 

Example
=======

File 1 (primary file)
---------------------

```
Hello <<CODE>>
Goodbye.

```

File 2 (contents)
-----------------

```
Anonymous person,
I am very nice. 

```

File 3 (target)
---------------

```
Hello Anonymous person,
I am very nice.
Goodbye.

```

---

Right now, I am using this command:

```
sed "/<<CODE>>/{r file2
:a;n;ba}" file1            | \
    sed "s/<<CODE>>//g"    > \
    file3

```

But this outputs:

```
Hello
Anonymous person,
I am very nice.
Goodbye.

```

(note the newline after `Hello`)

* How can I do this without getting that newline?
	+ (note that `file2` may contain all sorts of things: brackets, newlines, quotes, ...)