Multiline templates aren't well escaped

Change-Id: I77f667b7061e3a5bc6371e5219d04453d08273c1