OSX doesn't have
GNU sed? That's a suprise to me, what version
does it have? If it's a nonstandard version, maybye it has nonstandard flags to make it use normal linefeeds...
Use code tags for code, it'll use a monospace font and not compress the spaces. Like {code} stuff {/code} but with [ ] instead of { }.