[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 04 Sep 2002 21:01:33 -0000


albertel		Wed Sep  4 17:01:33 2002 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  - I have got to stop programming a 3 am
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.192 loncom/xml/lonxml.pm:1.193
--- loncom/xml/lonxml.pm:1.192	Wed Sep  4 02:55:27 2002
+++ loncom/xml/lonxml.pm	Wed Sep  4 17:01:33 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.192 2002/09/04 06:55:27 albertel Exp $
+# $Id: lonxml.pm,v 1.193 2002/09/04 21:01:33 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -565,7 +565,7 @@
       if (($token->[0] eq 'T') || ($token->[0] eq 'C') || ($token->[0] eq 'D') ) {
 	if ($metamode<1) {
 	    my $text=$token->[1];
-	    if ($token->[0] eq 'C') {
+	    if ($token->[0] eq 'C' && $target eq 'tex') {
 		$text = '%'.$text;
 		$text =~ s/[\n\r]//g;
 	    }