Previous Thread
Next Thread
Print Thread
Controling White Space
#2061 07/16/04 11:26 PM
Joined: Sep 2003
Posts: 119
hlwood Offline OP
Forum Member
OP Offline
Forum Member
Joined: Sep 2003
Posts: 119
Just a reminder to everyone. When posting scripts it is best to use either of the following 2 methods.....

First: Set the "Make post" drop down to "using HTML" and add the <pre> ..... </pre> directives at the top and
bottom of your post.

Second: Set the "Make post" drop down to "using UBBCode" and add the [code] ...... [/code] directives at the
top and bottom of your post.

Also, if you need to post C code for any reason then you must do the includes in the following way....
#include < stdio.h >
Notice the space in between the < and the filename.

Hope this helps,
Lee

Re: Controling White Space
hlwood #2062 10/01/04 04:35 PM
Joined: Sep 2003
Posts: 8,509
Likes: 1
rmv Online Content
Forum Member
Online Content
Forum Member
Joined: Sep 2003
Posts: 8,509
Likes: 1
With the software upgrade, I've found that it's now necessary to use two HTML tags to get proper white space behavior, both <pre> and <kbd>. The former allows multiple space chars to be preserved, while the latter is needed to force the use of a fixed size font. Also, the <kbd> tag needs to follow the <pre> tag, as illustrated below:

Some descriptive text, blah, blah, blah
<pre><kbd>
source code or CHARMM input script
</kbd></pre>

Don't forget to select "Using HTML and UBBCode"


Rick Venable
computational chemist

Re: Controling White Space
hlwood #2063 10/14/04 09:10 PM
Joined: Feb 2004
Posts: 147
Forum Member
Offline
Forum Member
Joined: Feb 2004
Posts: 147
If I want to edit a post that was had initially set "using HTML", all the HTML tags appear afterwards
in clear text as if UBB changed the post to "using BBCode"; furthermore when editing I don't have
the choice of changing this setting. The quick-and-dirty solution was to:
1. copy-and-paste to a text editor the text given by UBB including the HTML tags
2. delete the post
3. re-add the post with cut-and-paste from the text editor, then make the changes and submit

That's not quite convenient, isn't it ?

Re: Controling White Space
bogdan #2064 03/04/05 07:24 PM
Joined: Sep 2003
Posts: 119
hlwood Offline OP
Forum Member
OP Offline
Forum Member
Joined: Sep 2003
Posts: 119
This problem should be fixed now...

We have done some fixing up of the html/ubb tag code in our version. You should not be able to post in html/ubb and edit these posts with having additional spaces inserted or any other weird stuff happening.

Please let me know if you have any other problems with white space issuses...


Moderated by  lennart, rmv 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 5.6.33-0+deb8u1 Page Time: 0.009s Queries: 22 (0.004s) Memory: 0.9128 MB (Peak: 0.9937 MB) Data Comp: Off Server Time: 2020-11-26 16:06:04 UTC
Valid HTML 5 and Valid CSS