[LON-CAPA-cvs] cvs: loncom /xml londefdef.pm
matthew
lon-capa-cvs@mail.lon-capa.org
Fri, 21 May 2004 21:07:00 -0000
matthew Fri May 21 17:07:00 2004 EDT
Modified files:
/loncom/xml londefdef.pm
Log:
Handle case of <p> without alignment parameter.
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.215 loncom/xml/londefdef.pm:1.216
--- loncom/xml/londefdef.pm:1.215 Wed May 12 14:59:38 2004
+++ loncom/xml/londefdef.pm Fri May 21 17:06:59 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Tags Default Definition Module
#
-# $Id: londefdef.pm,v 1.215 2004/05/12 18:59:38 sakharuk Exp $
+# $Id: londefdef.pm,v 1.216 2004/05/21 21:06:59 matthew Exp $
#
#
# Copyright Michigan State University Board of Trustees
@@ -1110,7 +1110,9 @@
$currentstring='\makebox['.$ENV{'form.textwidth'}.']{\hfill\llap{';
} elsif ($align eq 'left') {
$currentstring='\noindent\makebox['.$ENV{'form.textwidth'}.']{\rlap{';
- }
+ } else {
+ $currentstring='\par ';
+ }
my $signal=1;#<p> does not work inside <b>...</b>
foreach my $tag (@$tagstack) {if (lc($tag) eq 'b') {$signal=0;}
if (!$signal) {$currentstring = '';}