Skip to content

Commit 86e3c81

Browse files
authored
Make PTX multiple choice answers show their name. (#587)
1 parent c033e77 commit 86e3c81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

macros/parserPopUp.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ sub MENU {
173173
};
174174
$menu .= "</select>";
175175
} elsif ($main::displayMode eq 'PTX') {
176-
$menu = '<var form="popup">' . "\n";
176+
$menu = qq(<var form="popup" name="$name">) . "\n";
177177
foreach my $item (@list) {
178178
$menu .= '<li>';
179179
my $escaped_item = $item;

macros/parserRadioButtons.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ sub BUTTONS {
592592
$radio[$#radio_buttons] .= "\n\\end{itemize}\n";
593593
}
594594
if ($main::displayMode eq 'PTX') {
595-
$radio[0] = '<var form="buttons">' . "\n" . $radio[0];
595+
$radio[0] = qq(<var form="buttons" name="$name">) . "\n" . $radio[0];
596596
$radio[$#radio_buttons] .= '</var>';
597597
#turn any math delimiters
598598
@radio = map {$_ =~ s/\\\(/<m>/g; $_} (@radio);

0 commit comments

Comments
 (0)