Permalink
Browse files

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

  • Loading branch information...
1 parent 48d45f1 commit 9ca8056ae0bd9ef50f923627c489d07ea3084c85 danmarsden committed Mar 31, 2005
Showing with 4 additions and 2 deletions.
  1. +4 −2 mod/choice/view.php
View
@@ -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>";

0 comments on commit 9ca8056

Please sign in to comment.