Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions macros/parsers/parserCheckboxList.pl
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ =head1 DESCRIPTION

=item C<S<< separator => string >>>

Specifies the text to put between the checkboxes. Default: $BR
Specifies the text to put between the checkboxes. Note that this is only used in
HTML display modes, and is ignored for PTX and TeX display modes. Default: $BR

=item C<S<< checked => choice >>>

Expand Down Expand Up @@ -614,7 +615,10 @@ sub CHECKS {
$checks[-1] .= "</div>";
}

return wantarray ? @checks : join($main::displayMode eq 'PTX' ? '' : $self->{separator}, @checks);
return
wantarray
? @checks
: join($main::displayMode eq 'PTX' || $main::displayMode eq 'TeX' ? '' : $self->{separator}, @checks);
}

sub protect {
Expand Down
8 changes: 6 additions & 2 deletions macros/parsers/parserRadioButtons.pl
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ =head1 DESCRIPTION

=item C<S<< separator => string >>>

Specifies the text to put between the radio buttons. Default: $BR
Specifies the text to put between the radio buttons. Note that this is only used
in HTML display modes, and is ignored for PTX and TeX display modes.
Default: $BR

=item C<S<< checked => choice >>>

Expand Down Expand Up @@ -699,7 +701,9 @@ sub BUTTONS {
. qq{data-feedback-btn-add-class="ms-3">$radio[0]};
$radio[-1] .= "</div>";
}
(wantarray) ? @radio : join(($main::displayMode eq 'PTX') ? '' : $self->{separator}, @radio);
wantarray
? @radio
: join($main::displayMode eq 'PTX' || $main::displayMode eq 'TeX' ? '' : $self->{separator}, @radio);
}

sub protect {
Expand Down