don't add <p></p> tags when in vertical display mode.
This commit is contained in:
+4
-2
@@ -130,9 +130,11 @@
|
||||
case CHOICE_DISPLAY_VERTICAL:
|
||||
echo "<table cellpadding=\"10\" cellspacing=\"10\" align=\"center\">";
|
||||
foreach ($choice->option as $optionid => $text) {
|
||||
if ($text) {
|
||||
if ($text) {
|
||||
$options = null;
|
||||
$options->para = false;
|
||||
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);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
Reference in New Issue
Block a user