Welcome Guest [Log In] [Register]
Viewing Single Post From: Whitespace in [code] tags
mosher
Member
[ *  * ]
I experienced the same problem when inserting column-sensitive text in a block. The solution I used was to specify a font block using courier and inserting HTML "&-nbsp;" (non-breaking space) instead of a space (ignore the hyphen between '&' and 'nbsp' -- without it ZetaBoards renders a non-breaking space!). Here's an example that uses regular spaces:

Quote:
 
FINAL TRANSMISSION: FPTBI UGDGX POFDV MXSUF MTGQK UJFGM MGGPV
HXLNB MPUVS GQENW

You can see that the spaces are stripped out.

Here's what it looks like when using non-breaking spaces:
Code:
 
[q-uote][f-ont=courier]
FINAL[space]TRANSMISSION:[space]FPTBI[space]UGDGX[space]POFDV[space]MXSUF[space]MTGQK[space]UJFGM[space]MGGPV[space]
&-nbsp;&-nbsp;&-nbsp;&-nbsp;&-nbsp;&-nbsp;&-nbsp;&-nbsp;&-nbsp;&-nbsp;&-nbsp;&-nbsp;&-nbsp;&-nbsp;&-nbsp;&-nbsp;&-nbsp;&-nbsp;&-nbsp;&-nbsp;HXLNB[space]MPUVS[space]GQENW[/f-ont][/q-uote]

Quote:
 
FINAL TRANSMISSION: FPTBI UGDGX POFDV MXSUF MTGQK UJFGM MGGPV
                    HXLNB MPUVS GQENW

Kind of a pain, but it gets the job done. Hope this helps.

Moshe
Offline Profile Quote Post
Whitespace in [code] tags · Community