Diff for /loncom/xml/londefdef.pm between versions 1.225 and 1.227

version 1.225, 2004/07/12 16:11:30 version 1.227, 2004/07/12 17:57:36
Line 1133  sub end_p { Line 1133  sub end_p {
     if ($target eq 'web') {      if ($target eq 'web') {
  $currentstring .= $token->[2];   $currentstring .= $token->[2];
     } elsif ($target eq 'tex') {      } elsif ($target eq 'tex') {
  if ($$tagstack[-1] eq 'p') {   my $align=&Apache::lonxml::get_param('align',$parstack,$safeeval,undef,1);
     my $align=&Apache::lonxml::get_param('align',$parstack,$safeeval,undef,1);   if ($align eq 'center') {
     if ($align eq 'center') {      $currentstring .= '\end{center}';
  $currentstring .= '\end{center}';   } elsif ($align eq 'right') {
     } elsif ($align eq 'right') {      $currentstring .= '}}';
  $currentstring .= '}}';   } elsif ($align eq 'left') {
     } elsif ($align eq 'left') {      $currentstring .= '}\hfill}';
  $currentstring .= '}\hfill}';  
     }  
  }   }
     }      }
     return $currentstring;      return $currentstring;
Line 1154  sub start_br { Line 1152  sub start_br {
     if ($target eq 'web') {      if ($target eq 'web') {
  $currentstring .= $token->[4];   $currentstring .= $token->[4];
     } elsif ($target eq 'tex') {      } elsif ($target eq 'tex') {
  if (($$tagstack[-2] eq 'b') || ($$tagstack[-2] eq 'strong') ||   my @tempo=@$tagstack;
             ($$tagstack[-2] eq 'ol') || ($$tagstack[-2] eq 'ul')) {   my $sygnal=0;
    for (my $i=$#tempo;$i>=0;$i--) {
       if (($tempo[$i] eq 'b') || ($tempo[$i] eq 'strong') ||
                   ($tempo[$i] eq 'ol') || ($tempo[$i] eq 'ul'))  {
    $sygnal=1;
    last;
       }
    }
    if ($sygnal) {
     $currentstring .= ' \vskip 0 mm ';      $currentstring .= ' \vskip 0 mm ';
  } elsif ($$tagstack[-2] ne 'sub' && $$tagstack[-2] ne 'sup') {   } elsif ($$tagstack[-2] ne 'sub' && $$tagstack[-2] ne 'sup') {
     $currentstring .= '\strut \\\\ \strut ';      $currentstring .= '\strut \\\\ \strut ';

Removed from v.1.225  
changed lines
  Added in v.1.227


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>