Welcome, Guest. Please Login or Register.
October 04, 2024, 07:35:35 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Extra blank lines in preview « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Extra blank lines in preview  (Read 376 times)
Taildragger
Full Member
***
Posts: 158


WWW
Extra blank lines in preview
« on: March 09, 2003, 04:14:30 AM »
Reply with quote

Noticed this in 1.5.1:

When I have a quote box and look at it in preview, the text before the quote box has one linebreak taken away, so that text with one blank line before the quote box will appear crammed right up against it.  After the text box, it's the opposite: there is an extra blank line.

Once I save the message and view it as a normal post, everything is back to normal (no removed or added blank lines).

Any ideas?

It's also kind of weird that in preview, the preview text seems to scale as a percentage of the browser window, but the input box (where you can make more changes, etc.) appears to be fixed width.
Logged

We're designed to be hunters and we're in a society of shopping. There's nothing to kill anymore, there's nothing to fight, nothing to overcome, nothing to explore. In that social emasculation this everyman is created.
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Extra blank lines in preview
« Reply #1 on: March 09, 2003, 04:17:28 AM »
Reply with quote

Are you sure this is the most recent build?

-[Unknown]
« Last Edit: March 09, 2003, 04:17:48 AM by [Unknown] » Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Extra blank lines in preview
« Reply #2 on: March 09, 2003, 04:22:43 AM »
Reply with quote

In preview mode, there's an extra line break before [ code ] tag
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Taildragger
Full Member
***
Posts: 158


WWW
Re:Extra blank lines in preview
« Reply #3 on: March 09, 2003, 04:23:28 AM »
Reply with quote

Quote from: [Unknown] on March 09, 2003, 04:17:28 AM
Are you sure this is the most recent build?

-[Unknown]

I downloaded it yesterday...  ???
Logged

We're designed to be hunters and we're in a society of shopping. There's nothing to kill anymore, there's nothing to fight, nothing to overcome, nothing to explore. In that social emasculation this everyman is created.
Taildragger
Full Member
***
Posts: 158


WWW
Re:Extra blank lines in preview
« Reply #4 on: March 09, 2003, 04:40:13 AM »
Reply with quote

Quote from: Spaceman-Spiff on March 09, 2003, 04:22:43 AM
In preview mode, there's an extra line break before [ code ] tag

So is this considered a bug then?  Is there an easy fix I can do myself?

Also, any idea why the preview box scales differently than the rest?  Is it intentional?  I can see it on this board, but it has to get really skinny before I do.  It shows up quick on my forum.
Logged

We're designed to be hunters and we're in a society of shopping. There's nothing to kill anymore, there's nothing to fight, nothing to overcome, nothing to explore. In that social emasculation this everyman is created.
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Extra blank lines in preview
« Reply #5 on: March 09, 2003, 03:12:29 PM »
Reply with quote

This preview discrepancy thing has been causing problems for a while:

Quote from: Peter Duggan on January 24, 2003, 12:11:20 AM
Some line feed things here that have bothered me for a while. What you post isn't always what you get, but the same sequence in 1.5.1RC1 is screwy in a different way (like adding blank lines in different places and appearing different in preview than final post). :o

Quote from: Peter Duggan on February 05, 2003, 12:38:08 AM
Quote from: [Unknown] on February 05, 2003, 12:22:25 AM
YES I WAS RIGHT!!!

*is happy*

Ah, but have you fixed that line-feed-discrepancy-between-preview-and-posted-message-when-using-quote-tags thing?

(Well, look at my post above...) ;)

Quote from: [Unknown] on February 05, 2003, 12:42:24 AM
I keep fixing it, and some evil gremlin keeps UNfixing it... so I assume there's something wrong with it being fixed.

-[Unknown]

PS I acknowledge the great job the team do and hope my posts about this will be taken as feedback rather than criticism, but it would be nice to see the problem dead and buried for good!
« Last Edit: March 09, 2003, 03:21:58 PM by Peter Duggan » Logged

Taildragger
Full Member
***
Posts: 158


WWW
Re:Extra blank lines in preview
« Reply #6 on: March 15, 2003, 02:47:44 PM »
Reply with quote

I'm sorry to be a pain, but is this really tough to solve?  It bugs me on a daily basis because we do a lot of replies with numerous instances of quoting on my site.

I looked at the code some, but I have to admit that it's beyond me.  I just don't understand enough about how it works.  What changed from 1.5 to 1.5.1 to cause this?

I added this to the Sourceforge bug list but it got deleted?  :(
« Last Edit: March 15, 2003, 02:50:23 PM by Taildragger » Logged

We're designed to be hunters and we're in a society of shopping. There's nothing to kill anymore, there's nothing to fight, nothing to overcome, nothing to explore. In that social emasculation this everyman is created.
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Extra blank lines in preview
« Reply #7 on: March 15, 2003, 10:08:48 PM »
Reply with quote

I didn't close this bug.... I don't think.

I messed with it a lot, but I can't seem to fix the preview mode..  I can't even figure out what's so different between the two...

-[Unknown]
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Extra blank lines in preview
« Reply #8 on: March 16, 2003, 12:07:12 AM »
Reply with quote

i think u need to move these lines:
   $message2 = str_replace("\t","   ",$message2);
   $message2 = str_replace("\r","",$message2);
   $message2 = str_replace("\n","<br />",$message2);

before:
   if ($enable_ubbc)
   {
      $message2 = preparsecode($message2, $realname, $username);
      $es = ($ns == ' checked') ? 0 : 1;
      $message2 = DoUBBC($message2, $es);
   }


because that's how it's done in Post2() & Display.php, it's replaced first, before being parsed in doUBBC()
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Extra blank lines in preview
« Reply #9 on: March 16, 2003, 12:27:41 AM »
Reply with quote

That would explain it.

Here's hoping bookmarks work, because I can't do it just now...

-[Unknown]
Logged
Taildragger
Full Member
***
Posts: 158


WWW
Re:Extra blank lines in preview
« Reply #10 on: March 16, 2003, 01:11:03 AM »
Reply with quote

Which file?

I searched in subs.php and could find no such lines.  Not one instance of "message2" at all.

Thanks.

Quote from: Spaceman-Spiff on March 16, 2003, 12:07:12 AM
i think u need to move these lines:
   $message2 = str_replace("\t","   ",$message2);
   $message2 = str_replace("\r","",$message2);
   $message2 = str_replace("\n","<br />",$message2);

before:
   if ($enable_ubbc)
   {
      $message2 = preparsecode($message2, $realname, $username);
      $es = ($ns == ' checked') ? 0 : 1;
      $message2 = DoUBBC($message2, $es);
   }


because that's how it's done in Post2() & Display.php, it's replaced first, before being parsed in doUBBC()
Logged

We're designed to be hunters and we're in a society of shopping. There's nothing to kill anymore, there's nothing to fight, nothing to overcome, nothing to explore. In that social emasculation this everyman is created.
Taildragger
Full Member
***
Posts: 158


WWW
Re:Extra blank lines in preview
« Reply #11 on: March 16, 2003, 01:16:10 AM »
Reply with quote

Nevermind, found it in post.php.

And, it works!  Thanks man.  ;D
Logged

We're designed to be hunters and we're in a society of shopping. There's nothing to kill anymore, there's nothing to fight, nothing to overcome, nothing to explore. In that social emasculation this everyman is created.
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Extra blank lines in preview « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.024 seconds with 20 queries.