--- loncom/homework/default_homework.lcpm 2010/01/06 16:59:30 1.147 +++ loncom/homework/default_homework.lcpm 2010/10/14 04:59:08 1.148 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # used by lonxml::xmlparse() as input variable $safeinit to Apache::run::run() # -# $Id: default_homework.lcpm,v 1.147 2010/01/06 16:59:30 www Exp $ +# $Id: default_homework.lcpm,v 1.148 2010/10/14 04:59:08 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -343,7 +343,9 @@ sub caparesponse_check_list { if (($element==0) && ($unit!~/\w/) && ($answerunit=~/\w/)) { $appendunit=$answerunit; } - $element .= " $appendunit"; + if ($appendunit ne '') { + $element .= " $appendunit"; + } &LONCAPA_INTERNAL_DEBUG("Made response element :$element:"); } }