From fa7b8c20218fbab86b7c8420eb5abec7d722c927 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 6 Feb 2013 12:53:31 -0500 Subject: [PATCH] quizzes/git: Convert multi-line prompts to lists --- quizzes/git.json | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/quizzes/git.json b/quizzes/git.json index 3d2f0cc..1a80cb4 100644 --- a/quizzes/git.json +++ b/quizzes/git.json @@ -73,7 +73,11 @@ "class": "ScriptQuestion", "interpreter": "sh", "id": "git add / commit", - "prompt": "There is a new README file in your repository.\nMake a new commit including this README.\nThe commit message should be `Add a README`.", + "prompt": [ + "There is a new README file in your repository.", + "Make a new commit including this README.", + "The commit message should be `Add a README`." + ], "multiline": true, "timeout": null, "answer": [ @@ -104,7 +108,10 @@ "class": "ScriptQuestion", "interpreter": "sh", "id": "git checkout HEAD -- FILE", - "prompt": "You've messed up your README file.\nRestore it to the last committed version.", + "prompt": [ + "You've messed up your README file.", + "Restore it to the last committed version." + ], "answer": "git checkout HEAD -- README", "setup": [ "export GIT_AUTHOR_NAME='A U Thor'", @@ -132,7 +139,12 @@ "class": "ScriptQuestion", "interpreter": "sh", "id": "git commit --amend", - "prompt": "You messed up your README file in your last commit.\nYou just fixed the contents of `README`, but haven't added it to the index.\nCommit the new version so it also fixes the last commit.\nThe fixed commit message should be `Add a README`.", + "prompt": [ + "You messed up your README file in your last commit.", + "You just fixed the contents of `README`, but haven't added it to the index.", + "Commit the new version so it also fixes the last commit.", + "The fixed commit message should be `Add a README`." + ], "multiline": true, "timeout": null, "answer": [ -- 2.26.2