--- loncom/homework/cleanxml/xml_to_loncapa.pm 2016/01/21 22:11:13 1.9 +++ loncom/homework/cleanxml/xml_to_loncapa.pm 2016/11/10 21:53:56 1.10 @@ -1,7 +1,7 @@ # The LearningOnline Network # convert_file takes a well-formed XML file content and converts it to LON-CAPA syntax. # -# $Id: xml_to_loncapa.pm,v 1.9 2016/01/21 22:11:13 damieng Exp $ +# $Id: xml_to_loncapa.pm,v 1.10 2016/11/10 21:53:56 damieng Exp $ # # Copyright Michigan State University Board of Trustees # @@ -311,6 +311,9 @@ sub convert_paragraphs { # we only add a br if there is something after my $br = $doc->createElement('br'); $parent->insertBefore($br, $next); + # add another br to make up for the p margin + $br = $doc->createElement('br'); + $parent->insertBefore($br, $next); } } }