GilesGuthrie
Staff Emeritus
- 11,038
- Edinburgh, UK
- CMDRTheDarkLord
Sandstorm alterted me to something odd in the way vB handles lines with lots of formatting in them.
If you enter with no spaces and no line break (for example)
(spaces and line break have been added in the code to get the code to display readably and unformatted)
You get
which should be on one line. This isn't particularly interesting until you look at the html source that vB generates for this line:
The interesting thing here is the <br /> tag. I've never actually seen this tag before, always just using <br> to force a new line break.
Although, having checked my own forums, this form of tag does appear to be the one used when PHP converts a line break in a string into a line break in HTML (PHP coders would use echo nl2br($string); to do this).
So...
It appears that in certain circumstances, there is a maximum length for a single word (i.e no spaces) in the database. I can verify this, because deleting characters before the line break shifts the line break along by the number of characters that you deleted.
Is this something that's been mentioned before? Is it intended? And if not, do you think it's something that the vB programmers would be interested in?
If you enter with no spaces and no line break (for example)
Code:
[ center ][ SIZE=3 ][ color=red ]the[ B ]official[ /B ]gtplanet[ B ]granturismo[ /B ]
real[ B ]driving[ /B ]simulator[ B ]®[ /B ][ /color ][ /SIZE ][ /center ]
You get
theofficialgtplanetgranturismorealdrivingsimulator®
which should be on one line. This isn't particularly interesting until you look at the html source that vB generates for this line:
Code:
<div align="center"><font size="3"><font color="red">the<b>officia<br />
l</b>gtplanet<b>granturismo</b>real<b>driving</b>simulator<b>®</b></font></font></div>
The interesting thing here is the <br /> tag. I've never actually seen this tag before, always just using <br> to force a new line break.
Although, having checked my own forums, this form of tag does appear to be the one used when PHP converts a line break in a string into a line break in HTML (PHP coders would use echo nl2br($string); to do this).
So...
It appears that in certain circumstances, there is a maximum length for a single word (i.e no spaces) in the database. I can verify this, because deleting characters before the line break shifts the line break along by the number of characters that you deleted.
Is this something that's been mentioned before? Is it intended? And if not, do you think it's something that the vB programmers would be interested in?