Add support for multiline fields

This is tested on master, but applies cleanly to `dev` and I see no reason why it shouldn't work.