shish/shimmie2 — pull request #154 by dgz (2012-03-03 18:01:51+00:00)
Title: Fix issue #62: wordwrap in CSS rather than PHP

See http://caniuse.com/wordwrap for browser compatibility (CSS3 feature)
Example: http://devbooru.nanochan.org/index.php?q=/post/view/3 (resize the browser window to force the line wrapping)
I'm not sure I've applied the CSS to the right part but my intent is to have word-wrap: break-word applied anywhere the bbcode extension is used. It doesn't seem like it would hurt anything to apply it to the whole body area of the page. At the very least it should be applied to wiki pages and comments.

The other option is as I mentioned in the bug report where we move the wordwrap call to the end of the bbcode parsing and replace it with one that is HTML safe. The PHP wordwrap() will happily stick your space or line break right in the middle of a tag if that's where 80 characters is.