It looks like you're new here. If you want to get involved, click one of these buttons!
I use BBCode on my forums, and although NBBC supports stripping leading and trailing whitespace, it isn't enabled. So I wrote a very simple plugin to accomplish the task.
However, I now wonder if maybe it was configurable some other way and I've tried to be too clever about it?
I put the plugin online anyway: https://open.vanillaforums.com/addon/nbbcwhitespacetrim-plugin-1.0.0