quizzes/git: Convert multi-line prompts to lists
authorW. Trevor King <wking@tremily.us>
Wed, 6 Feb 2013 17:53:31 +0000 (12:53 -0500)
committerW. Trevor King <wking@tremily.us>
Wed, 6 Feb 2013 17:59:17 +0000 (12:59 -0500)
quizzes/git.json

index 3d2f0ccf08fef81864b7c67dab195550796bda0b..1a80cb41fa65e77614fdda1bfdb2e65050400634 100644 (file)
                        "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": [
                        "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'",
                        "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": [