Home : Products : Gossamer Links : Development, Plugins and Globals :

Products: Gossamer Links: Development, Plugins and Globals: Re: [Andy] Divide column to two : Edit Log

Here is the list of edits for this post
Re: [Andy] Divide column to two
Code:
my @in = split /\n\r?\n\r?/, $_[0];

Um, I think you mean \r?\n\r?\n

And what is the point of joining using \n\n and then substituting with <br><br>. Why not just use <br> in the first place? Tongue

Code:
sub {

my @parts = split /\r?\n\r?\n/, $_[0];
my $desc1 = shift @parts;
my $desc2 = join "<br /><br />", @parts;

return { Description1 => $desc1, Description2 => $desc2 }
}

Last edited by:

Wychwood: Jun 24, 2008, 4:51 PM

Edit Log: