vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Quotes - Why does it autmoatically remove spaces? (https://vborg.vbsupport.ru/showthread.php?t=167443)

kiFF 01-10-2008 05:17 PM

Quotes - Why does it autmoatically remove spaces?
 
My problem is very simple. Let's say I type the following code:

Quote:

[quote.]How are you?[/quote.]

I'm fine, thanks!

If I press "Preview", it automatically changes the code to this:

Quote:

[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

Quote:

Originally Posted by Blaine0002 (Post 1419074)
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 [DATE]1199998238[/DATE] at [TIME]1199998238[/TIME] ---------------

@kiff, is this a custom quote system your using, meaning modified code to display the quote format?

Blaine0002 01-10-2008 06:53 PM

Quote:

Originally Posted by snakes1100 (Post 1419110)
The removal of line breaks is not normal, it shouldnt be stripping the line break away.

--------------- Added [DATE]1199998238[/DATE] at [TIME]1199998238[/TIME] ---------------

@kiff, is this a custom quote system your using, meaning modified code to display the quote format?

but
[quote.]blah[/quote.]blah

appears as :

Quote:

blah
blah


and
[quote.]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.

kiFF 01-10-2008 07:49 PM

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.

kiFF 01-10-2008 08:00 PM

I did. Lol.

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.

kiFF 01-10-2008 10:45 PM

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:

Quote:

[.code.]Testing[/code.]

Testing
automatically changes to this after I press "preview":
Quote:

[.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 [DATE]1200013664[/DATE] at [TIME]1200013664[/TIME] ---------------

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.

kiFF 01-10-2008 11:34 PM

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!!!


All times are GMT. The time now is 01:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01912 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete