From b5eed76b9f78c4492d28e6233479c9ceec2b57fc Mon Sep 17 00:00:00 2001 From: Alex Jordan Date: Sat, 24 Feb 2024 13:56:21 -0800 Subject: [PATCH] POD formatting --- macros/parsers/parserPopUp.pl | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/macros/parsers/parserPopUp.pl b/macros/parsers/parserPopUp.pl index 6f8c498f10..980aa416f9 100644 --- a/macros/parsers/parserPopUp.pl +++ b/macros/parsers/parserPopUp.pl @@ -26,9 +26,9 @@ =head1 DESCRIPTION To create a PopUp, DropDown, or DropDownTF object, use - $popup = PopUp([choices,...],correct,options); - $dropdown = DropDown([choices,...],correct,options); - $truefalse = DropDownTF(correct,options); + $popup = PopUp([ choices, ... ], correct, options); + $dropdown = DropDown([ choices, ... ], correct, options); + $truefalse = DropDownTF(correct, options); where "choices" are the items in the drop-down list, "correct" is the the correct answer for the group (or its index, with 0 being the @@ -69,19 +69,19 @@ =head1 DESCRIPTION brackets. For example $dropdown = DropDown( - [ - "First Item", - ["Random 1","Random 2","Random 3"], - "Last Item" - ], - "Random 3" - ); + [ + "First Item", + [ "Random 1", "Random 2", "Random 3" ], + "Last Item" + ], + "Random 3" + ); will make a list of options that has the first item always on top, the next three ordered randomly, and the last item always on the bottom. In this example - $dropdown = DropDown([["Random 1","Random 2","Random 3"]],2); + $dropdown = DropDown([ [ "Random 1", "Random 2", "Random 3" ] ], 2); all the entries are randomized, and the correct answer is "Random 3" (the one with index 2 in the flattened list). You can have as many