Code: Select all
This sentence should have a leading space.
This shouldn't.
This should.
Edit: the above is a trivial example, but what about indented code?
Code: Select all
This sentence should have a leading space.
This shouldn't.
This should.
Code: Select all
Start of the line
2 spaces indent here
No indent
6 spaces indent here
NB: If I add spaces in your code, it workshuw wrote:For exampleThe spaces are still there if the post is quoted or edited, but they never display. Does BBCode have a <PRE> tag?Code: Select all
This sentence should have a leading space. This shouldn't. This should.
Edit: the above is a trivial example, but what about indented code?
Code: Select all
Zero leading spaces
One
Two
Three
Four
Five
Code: Select all
Zero leading spaces
One
Two
Three
Four
Five
Code: Select all
Zero leading spaces
One
Two
Three
Four
Five
Yikes! Quoting hoses the lot!acknak wrote:It may not be your keyboard, but something very odd is going on.
Here's what I get if I reconstruct your entry (in my text editor) based on what you wrote, then paste that into a pair of code tags:So it's the same result for me.Code: Select all
Zero leading spaces One Two Three Four Five
Here's what I get when I use the "SELECT ALL" link; copy & paste from your example:There are four leading spaces on the first two lines, six on the next line ("Two"), 7, 8 and 9 on the last three (respectively).Code: Select all
Zero leading spaces One Two Three Four Five
Copying the one I typed out gives me back the same thing I get from yours. Copying the one I copied from yours adds four more spaces at the start.
Uggh. Obviously this needs to be fixed: the [ code][/code]* tags need to be reliable, both for display and for copying.
Code: Select all
Zero trailing spaces
One
Two
Three
Four
Five
Code: Select all
<dl class="codebox">
<dd><code>Zero leading spaces<br>
One<br>
Two<br>
Three<br>
Four<br>
Five<br>
</code></dd>
</dl>
Use spacesacknak wrote:It may not be your keyboard, but something very odd is going on.
Here's what I get if I reconstruct your entry (in my text editor) based on what you wrote, then paste that into a pair of code tags:So it's the same result for me.Code: Select all
Zero leading spaces One Two Three Four Five
Here's what I get when I use the "SELECT ALL" link; copy & paste from your example:There are four leading spaces on the first two lines, six on the next line ("Two"), 7, 8 and 9 on the last three (respectively).Code: Select all
Zero leading spaces One Two Three Four Five
Copying the one I typed out gives me back the same thing I get from yours. Copying the one I copied from yours adds four more spaces at the start.
Uggh. Obviously this needs to be fixed: the [ code][/code]* tags need to be reliable, both for display and for copying.
* In phpBB on oooforum, you could escape any special character by using a numeric entity: [ but that doesn't work in phpBB3. I can't find any way to escape the bbcode tags here. You can slightly mangle the tags and they will be left alone.
PS: I'm using Mozilla Seamonkey on Linux.
Code: Select all
sub test
dim a
dim b
if a then
print b
end if
end sub
Code: Select all
sub test
dim a
dim b
if a then
print b
end if
end sub