View Full Version : Quotes - Why does it autmoatically remove spaces?
My problem is very simple. Let's say I type the following code:
[quote.]How are you?[/quote.]
I'm fine, thanks!
If I press "Preview", it automatically changes the code to this:
[quote.]How are you?[/quote.]I'm fine, thanks!
As you can see, it automatically puts the text on one line. This is annoying because some people like to add spaces to make it easier to read.
Why is it doing this? Thanks.
Blaine0002
01-10-2008, 05:54 PM
my guess is its unnesessary as it will always be displayed the same way.
snakes1100
01-10-2008, 06:46 PM
my guess is its unnesessary as it will always be displayed the same way.
The removal of line breaks is not normal, it shouldnt be stripping the line break away.
--------------- Added 1199998238 at 1199998238 ---------------
@kiff, is this a custom quote system your using, meaning modified code to display the quote format?
Blaine0002
01-10-2008, 06:53 PM
The removal of line breaks is not normal, it shouldnt be stripping the line break away.
--------------- Added 1199998238 at 1199998238 ---------------
@kiff, is this a custom quote system your using, meaning modified code to display the quote format?
but
blah[/quote.]blah
appears as :
[quote]blahblah
and
blah[/quote.]
blah
appears as :
[quote]blah
blah
Same deal right?
snakes1100
01-10-2008, 07:00 PM
No, if you look at his post, it shows in the 2nd example that its removing the line break after he previews it.
Snakes, I'm using this: https://vborg.vbsupport.ru/showthread.php?t=166865
snakes1100
01-10-2008, 07:54 PM
I would suggest posting in that thread and asking for support on his custom coding.
snakes1100
01-10-2008, 09:56 PM
I see nothing wrong with the code, i even tested it on my dev site, are you sure you copied his coding correctly?
If he isnt supporting his hack, then that will need to be addressed by vbulletin staff, but it does function fine for me.
He answered me now, but it was second time posting the question. He said it was working fine for him, so he doesn't know what to do.
But I just realized, it's not just quotes. It's my bbcode in general! Even if I use other tags, it automatically puts it on one line. For example:
[.code.]Testing[/code.]
Testing
automatically changes to this after I press "preview":
[.code.]Testing[/code.]Testing
So it must have something to do with editing interface in general. Any ideas?
snakes1100
01-10-2008, 11:00 PM
I just used the test account provided, looks ok to me as well.
What browser are you using?
--------------- Added 1200013664 at 1200013664 ---------------
ok, i posted a few test post in that same thread and here is what im seeing.
If you manually input the quote tag and add a reply under after a line break, click preview post it strips away the line break in the post box, but it preview its correctly, then submit the post, it displays correctly.
This may have something to do with your browser your using, im testing it in FF, also tested in IE, altho it dont strip away the line break in the post box, it also appears correctly for my tests.
I'm using FF. And yes, it shows up correctly in the preview and when you post it. I'm just worried about people getting confused in the post box.
EDIT: And you're right: it only does it if you manually put in the quote tags or wrap it in quotes in the editor. If you click the "Quote" button in the post there's no problem.
EDIT2: I just realized there's no problem when I use IE. Curse you FireFox!!!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.