Excess Blank Lines

Started by Anguz, November 15, 2004, 11:42:13 PM

Previous topic - Next topic

Anguz

Link to Mod

This mod removes excess blank lines in messages. It works with messages posted after the mod was installed, be it new or an old one modified.

Copyright 2004 by Cristian Lavaque. http://anguz.net
Cristián Lávaque http://cristianlavaque.com

Anguz

Here's a couple of screenshots. A message with a lot of excess blank lines, I highlighted it to show the trailing spaces too. The second one is after applying the mod.
Cristián Lávaque http://cristianlavaque.com

Anguz

#2
A couple more things:


  • If you really need to have more blank lines than what the mod leaves, you can use the br tag effectively.
  • Also, I thought I'd comment cause it's important, this mod doesn't affect the parts of the message enclosed by code tags.
Cristián Lávaque http://cristianlavaque.com

Anguz

Cristián Lávaque http://cristianlavaque.com

Anguz

Cristián Lávaque http://cristianlavaque.com

thelastbaron

Will you be updating this for 1.0.3 anytime soon?
Thanks.
Nobody here but us chickens! Or are those cows?

Anguz

Cristián Lávaque http://cristianlavaque.com

smacktalk

Quote from: Anguz on April 24, 2005, 06:23:05 PM
Yes.

Great. I have this one jerk I mean member that continues to post blank lines.  lol!

jeremyyeo

Hey, this might be old, but does it work with RC3. Kinda getting so many blank lines at the bottom of my post(s).

Griffy

Would definitely like to see this for 1.1!

NayNay


Coldfx

Updated to 1.1.1 :)

To edit how many lines will be scrunched to 1:

After installing mod, open Sub-Post.php, found in your "Sources" folder.

Find:
Quote$parts[$i] = preg_replace('~(?:\s*\n)(?:\s*\n)+~', "\n\n", $parts[$i]);

Notice "\n\n",

Add/remove a "\n" (Known as a "linebreak") after the previous, to edit how many blank lines will be merged.

Thanks to Angunz for letting me update his mod :)

WebTeam SBD

Run this mod on 1.1.5?

Thks!
-------------------------------------------

http://www.cesabadell.org/forum

spiros

ExcessBlankLines102.tar.gz appears to be an empty package...

sharks

Please update this mod to work on SMF 1.1.x and 2.0 RC4.

AllMassive

That would be really nice - the DL for the latest Version is broken

aw06

:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

ernomo98

Some news for this mod with 2.0?

Advertisement: