What was the problem with using a heredoc? I think everything should be fine if you don't indent.