don't add <p></p> tags when in vertical display mode.

This commit is contained in:
danmarsden 2005-03-31 22:48:43 +00:00
parent 48d45f1fe0
commit 9ca8056ae0

View file

@ -130,9 +130,11 @@
case CHOICE_DISPLAY_VERTICAL: case CHOICE_DISPLAY_VERTICAL:
echo "<table cellpadding=\"10\" cellspacing=\"10\" align=\"center\">"; echo "<table cellpadding=\"10\" cellspacing=\"10\" align=\"center\">";
foreach ($choice->option as $optionid => $text) { foreach ($choice->option as $optionid => $text) {
if ($text) { if ($text) {
$options = null;
$options->para = false;
echo "<tr><td align=\"left\">"; echo "<tr><td align=\"left\">";
echo "<input type=\"radio\" name=\"answer\" value=\"".$optionid."\" ".$answerchecked[$optionid]." alt=\"".strip_tags(format_text($text))."\" />". echo "<input type=\"radio\" name=\"answer\" value=\"".$optionid."\" ".$answerchecked[$optionid]." alt=\"".strip_tags(format_text($text, FORMAT_MOODLE, $options))."\" />".
format_text($text); format_text($text);
echo "</td>"; echo "</td>";
echo "</tr>"; echo "</tr>";