Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
getting rid of the blank lines
curiousmaverick
Hi,
How do I get rid of the blank lines generated from the TPL file on page generation?
Regards,
Mav
Find more posts tagged with
Comments
Nikunj
HI..
You can add some perl code to your tpl ..to remove blank lines...
my $file=< < EOS;
line1
line2
line3
line4
line5
line6
line7
EOS
my
@withOutBlnkLines
= "";
my
@withLines
= split(/\n/,$file);
foreach(
@withLines){
if($_ ne ""){
push(
@withOutBlnkLines
,$_);
}
}
print join("\n",
@withOutBlnkLines)
."\n";
Hope this help u...
dazzlad
I am sure that this topic has been covered in many posts before. Have you had a thorough search of the forums?