Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Anguz on November 15, 2004, 11:42:13 PM

Title: Excess Blank Lines
Post by: Anguz on November 15, 2004, 11:42:13 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=52)

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
Title: Re: Excess Blank Lines
Post by: Anguz on November 15, 2004, 11:46:01 PM
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.
Title: Re: Excess Blank Lines
Post by: Anguz on November 16, 2004, 01:27:20 AM
A couple more things:

Title: Re: Excess Blank Lines
Post by: Anguz on February 06, 2005, 03:57:23 PM
1.01

Title: Re: Excess Blank Lines
Post by: Anguz on February 23, 2005, 12:42:14 AM
1.02

Title: Re: Excess Blank Lines
Post by: thelastbaron on April 23, 2005, 09:00:04 PM
Will you be updating this for 1.0.3 anytime soon?
Thanks.
Title: Re: Excess Blank Lines
Post by: Anguz on April 24, 2005, 06:23:05 PM
Yes.
Title: Re: Excess Blank Lines
Post by: smacktalk on May 04, 2005, 12:33:16 AM
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!
Title: Re: Excess Blank Lines
Post by: jeremyyeo on September 26, 2006, 09:52:39 PM
Hey, this might be old, but does it work with RC3. Kinda getting so many blank lines at the bottom of my post(s).
Title: Re: Excess Blank Lines
Post by: Griffy on December 08, 2006, 06:08:31 PM
Would definitely like to see this for 1.1!
Title: Re: Excess Blank Lines
Post by: NayNay on December 14, 2006, 09:12:52 AM
Any update on this?
Title: Re: Excess Blank Lines
Post by: Coldfx on February 03, 2007, 11:53:41 PM
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 :)
Title: Re: Excess Blank Lines
Post by: WebTeam SBD on July 26, 2008, 06:19:32 AM
Run this mod on 1.1.5?

Thks!
Title: Re: Excess Blank Lines
Post by: spiros on November 04, 2010, 05:27:19 AM
ExcessBlankLines102.tar.gz appears to be an empty package...
Title: Re: Excess Blank Lines
Post by: sharks on December 01, 2010, 01:03:13 PM
Please update this mod to work on SMF 1.1.x and 2.0 RC4.
Title: Re: Excess Blank Lines
Post by: AllMassive on December 11, 2010, 04:14:46 PM
That would be really nice - the DL for the latest Version is broken
Title: Re: Excess Blank Lines
Post by: aw06 on April 28, 2011, 01:06:58 PM
Any update for 1.1.13 ??
Title: Re: Excess Blank Lines
Post by: ernomo98 on July 13, 2011, 06:28:52 PM
Some news for this mod with 2.0?