Changeset 4176


Ignore:
Timestamp:
2003-04-17T13:38:56+12:00 (21 years ago)
Author:
dana
Message:

fixing up long lines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/cgi-bin/usabcgi.pm

    r4131 r4176  
    9494    foreach $pair (@pairs) {
    9595    ($name, $value)= split(/ := /,$pair);
     96    #this splits long values up for display purposes
     97        @tmplist = split(/ /,$value);
     98        foreach $item (@tmplist){
     99            if(length $item > 60){
     100                $tmp="";
     101                while(length $item > 60){
     102                    $tmp.= substr $item, 0, 60;
     103                    $tmp.=" ";
     104                    $item = substr $item, 60;
     105                }
     106                $tmp.=$item;
     107                $item=$tmp;
     108            }       
     109    }
    96110    #this adds html tags for breaks
    97111    $value =~ s/\n/\<br\>\n/g;
Note: See TracChangeset for help on using the changeset viewer.