Fix for Firefox

* Fixed print preview messed up on Firefox
* Fixed line breaking behavior not properly working inside <pre>