Welcome Guest [Log In] [Register]
Welcome to Crypto. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Whitespace in [code] tags
Topic Started: Jun 8 2008, 05:10 PM (220 Views)
jdege
Member Avatar
Elite member
[ *  *  *  *  * ]
I'm sure I'm not the only one who has noticed that since we've moved to ZetaBoards, our [code] tags have been stripping whitespace.

I asked about this over on the zetaboards support forum, and one of the authors has posted some javascript that is supposed to fix this.


http://support.zetaboards.com/topic/330778/1
When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.
Offline Profile Quote Post Goto Top
 
Revelation
Member Avatar
Administrator
[ *  *  *  *  * ]
I've copied the fix into the board code and edited the code a little to make it work.

Let's test it:

Code:
 

this
[space][space][space][space][space]is
[space][space][space][space][space][space][space]working
Edited by Revelation, Jun 9 2008, 09:40 AM.
RRRREJMEEEEEPVKLWENFNVJKEEEEEAOLKAFKLXCFZAASDJXZTTTTTTTLSIOWJXMOKLAFJNNKFNXN
RAGRBAQEMHIGDJVDSEOXVIYCELFHWLELJFIENXLRATALSJFSLCYTKLASJDKMHGOVOKAJDNMNUITN
RRRRLJVEEEEECLYVYHNVPFTAEEEEEMWLMEIRNGLARWJAKJDFLWNTIERJMIPQWOTZEOCXKNUBNXCN
RJIRPOWEANFUSNCZVDVZNMSFEKLOEPZLDKDJWSAAAAAAAOERHJCTNCKFRIMVKSOFOMKMANREWNBN
RZUDRGXEEEEENFQIDVLQNCKNEEEEEDGLLLLLLAWIOSNCDARLODMTOEJXMILDFJROTKJSDNLVCZNN
Offline Profile Quote Post Goto Top
 
jdege
Member Avatar
Elite member
[ *  *  *  *  * ]
It does seem to be working, when posted. The preview is broken.
Code:
 

[space][space][space][space][space][space][space][space]#
[space][space][space][space][space][space]#[space]#
[space][space][space][space]#[space]#[space]#
[space][space]#[space]#[space]#[space]#
#[space]#[space]#[space]#[space]#
1[space]2[space]3[space]4[space]5

When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.
Offline Profile Quote Post Goto Top
 
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 Goto Top
 
mosher
Member
[ *  * ]
Revelation,

The fact that a block with spaces doesn't preview correctly is a super pain when posting a post with strategically placed whitespace. Can you please find out from the ZetaBoard people if they have a fix for it? If not, can you enter a bug report? It would be _great_ if this were fixed.

Moshe
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Community · Next Topic »
Add Reply