In addition to the missing /r (already mentioned), that will remove blank lines. Use \h instead of \s.
In reply to Re^2: Here documents in blocks by ikegami in thread Here documents in blocks by Bod