mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
don't add <p></p> tags when in vertical display mode.
This commit is contained in:
parent
48d45f1fe0
commit
9ca8056ae0
1 changed files with 4 additions and 2 deletions
|
@ -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>";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue