From d21947c689dfbc6b797dca7ed5b3b191fffe0512 Mon Sep 17 00:00:00 2001 From: Nanosync <10258208+Nanosync@users.noreply.github.com> Date: Tue, 17 Sep 2019 23:08:07 +0800 Subject: [PATCH] Fix spacing in find output --- docs/README.md | 4 ++-- src/main/java/duke/command/FindCommand.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/README.md b/docs/README.md index 880ee2333d..f5d919076d 100644 --- a/docs/README.md +++ b/docs/README.md @@ -207,8 +207,8 @@ Finds a task with given keywords. ``` Here are the matching tasks in your list: -1.[T][ ] prepare materials -2.[T][ ] prepare content +1. [T][ ] prepare materials +2. [T][ ] prepare content ``` Assuming the list has 3 tasks (`draw props`, `prepare materials`, `prepare content`), the tasks containing the word `pre` is returned. diff --git a/src/main/java/duke/command/FindCommand.java b/src/main/java/duke/command/FindCommand.java index f14aa14318..0a55e7f1bc 100644 --- a/src/main/java/duke/command/FindCommand.java +++ b/src/main/java/duke/command/FindCommand.java @@ -35,7 +35,7 @@ public void execute(TaskList tasks, Ui ui, Storage storage) { ui.printLine("Here are the matching tasks in your list:"); for (int i = 0; i < matchingTasks.size(); i++) { - String output = String.format("%d.%s", i + 1, matchingTasks.get(i)); + String output = String.format("%d. %s", i + 1, matchingTasks.get(i)); ui.printLine(output); } }