Skip to content

Commit

Permalink
fix - reg - Fixed one-line and two-line choice rendering
Browse files Browse the repository at this point in the history
---

We've fixed a regression where the one-line and the two-line choice styles print an answer with "False/True" instead of just the answer.

---

Type: fix
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Feb 28, 2024
1 parent 53d1d3a commit 99dccac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Terminaux/Inputs/Styles/Choice/ChoiceStyle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -895,14 +895,14 @@ public static string PromptChoice(string Question, InputChoiceInfo[] Answers, In
{
string answersPlace = altAnswers.Count > 0 ? " <{0}/{1}> " : " <{0}> ";
TextWriterColor.WriteColor(Question, false, questionColor);
TextWriterColor.WriteColor(answersPlace, false, inputColor, string.Join("/", answers), string.Join("/", altAnswers));
TextWriterColor.WriteColor(answersPlace, false, inputColor, string.Join("/", answerNames), string.Join("/", altAnswerNames));
break;
}
case ChoiceOutputType.TwoLines:
{
string answersPlace = altAnswers.Count > 0 ? "<{0}/{1}> " : "<{0}> ";
TextWriterColor.WriteColor(Question, true, questionColor);
TextWriterColor.WriteColor(answersPlace, false, inputColor, string.Join("/", answers), string.Join("/", altAnswers));
TextWriterColor.WriteColor(answersPlace, false, inputColor, string.Join("/", answerNames), string.Join("/", altAnswerNames));
break;
}
case ChoiceOutputType.Modern:
Expand Down

0 comments on commit 99dccac

Please sign in to comment.