add a digit to qrg in sh/dx
[spider.git] / perl / DXCommandmode.pm
index bcf1bf075b9beda9f40279bb70b59fbcf4f5e008..051332b03b75c8f85ff9e32d75dbe23755a25f0d 100644 (file)
@@ -996,10 +996,11 @@ sub format_dx_spot
 
        my $t = ztime($_[2]);
        my $loc = '';
-       my $clth = 30;
+       my $clth = 31 + $self->{width} - 80;    # allow comment to grow according the screen width 
        #       --$clth if $self->{consort} eq 'local';
        
        my $comment = substr (($_[3] || ''), 0, $clth);
+       $comment =~ s/\t/ /g;
        $comment .= ' ' x ($clth - (length($comment)));
        
     if ($self->{user}->wantgrid) {