So if I'm understanding your right, you don't mind the breaking space, as long as it doesn't double it up.
If that's the case, I think pre, whether you use CSS or the HTML tag, automatically double spaces lines. I tried this and got the results I believe your looking for:
Code:
<div style="white-space:nowrap; width:300px; overflow:scroll;"><code>{param}</code></div>