Skip to content

Commit

Permalink
Make PTX multiple choice answers show their name. (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Jordan authored and glennricster committed Jul 1, 2021
1 parent 3dfc20e commit f3a0b84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion macros/parserPopUp.pl
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ sub MENU {
};
$menu .= "</select>";
} elsif ($main::displayMode eq 'PTX') {
$menu = '<var form="popup">' . "\n";
$menu = qq(<var form="popup" name="$name">) . "\n";
foreach my $item (@list) {
$menu .= '<li>';
my $escaped_item = $item;
Expand Down
2 changes: 1 addition & 1 deletion macros/parserRadioButtons.pl
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ sub BUTTONS {
$radio[$#radio_buttons] .= "\n\\end{itemize}\n";
}
if ($main::displayMode eq 'PTX') {
$radio[0] = '<var form="buttons">' . "\n" . $radio[0];
$radio[0] = qq(<var form="buttons" name="$name">) . "\n" . $radio[0];
$radio[$#radio_buttons] .= '</var>';
#turn any math delimiters
@radio = map {$_ =~ s/\\\(/<m>/g; $_} (@radio);
Expand Down

0 comments on commit f3a0b84

Please sign in to comment.