Hi Connor,
Your code works great, thanks.
Except it prunes all newlines ! Annoying. Do you have any idea ?

Exemple:

xxxx


yyyy

becomes

xxxx
yyyy