Schik wrote:
Actually, that has nothing to do with the forum software. That's part of the HTML spec - whitespace is ignored for formatting, except one space between words. If you want to use whitespace to format, it has to be in a <pre> block.
I've found a better way, that a poster can actually use in the post text - nobreak spaces. These are automatically parsed even though they're html. Unfortunately this happens whether inside or outside [code] blocks, or the editing text after preview.
The html for nobreak spaces is "
& nbsp ;"
removing the spaces within the quotes. All the other special characters are also available e.g.
& alpha ; & beta ; & gamma ; & delta; & epsilon ; & zeta ;
(removing spaces)
αβγδεζ
It would be nice if you could automatically parse the post text, adding them where necessary for display (mostly to fix the preview problem, but also for convenience) If the set of spaces is more than two, you only need to replace every second space, for the text to display as the author intended.