[LON-CAPA-cvs] cvs: loncom /xml londefdef.pm
foxr
lon-capa-cvs-allow@mail.lon-capa.org
Mon, 10 Nov 2008 11:17:50 -0000
foxr Mon Nov 10 11:17:50 2008 EDT
Modified files:
/loncom/xml londefdef.pm
Log:
BZ5548:
Disable <p> tag in tables to prevent printing errors/hung print jobs.
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.395 loncom/xml/londefdef.pm:1.396
--- loncom/xml/londefdef.pm:1.395 Mon Oct 27 19:15:35 2008
+++ loncom/xml/londefdef.pm Mon Nov 10 11:17:50 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Tags Default Definition Module
#
-# $Id: londefdef.pm,v 1.395 2008/10/27 19:15:35 raeburn Exp $
+# $Id: londefdef.pm,v 1.396 2008/11/10 11:17:50 foxr Exp $
#
#
# Copyright Michigan State University Board of Trustees
@@ -2026,6 +2026,7 @@
if ($target eq 'web' || $target eq 'webgrade') {
$currentstring .= $token->[4];
} elsif ($target eq 'tex') {
+ &disable_para(); # Can't have paras in a table.
push(@Apache::londefdef::table, {});
$Apache::londefdef::table[-1]{'row_number'} = -1;
#maximum table's width (default coincides with text line length)
@@ -2524,7 +2525,8 @@
pop @Apache::londefdef::table;
undef @Apache::londefdef::table;
}
- }
+ }
+ &enable_para();
}
return $currentstring;
}