sub Ovid_Clear_MakePtag{ my $fixme = shift; # take in our parameters return join "\r\n", # join with newlines map { "
$_
" } # wrap each line in tags grep { /\S/ } # must have at least one non-whitespace character split "\r\n", $fixme; # break apart on the newlines } sub MakePtag{ chomp(my $fixme = shift;) # take in our parameters $fixme=~s|(\r\n)||g; # replace all \r\n with <\p>
$fixme = "
$fixme
"; # Add beginning and ending tags return $fixme; }