Skip to content

Commit

Permalink
Fix formatting bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
yyyaohhh committed Oct 19, 2023
1 parent 0c4e2a8 commit 83798ac
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/logic/Messages.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static String format(Module module) {
final StringBuilder builder = new StringBuilder();
builder.append((module.getModuleCode()))
.append("; Semester: ")
.append("Y" + module.getYearTaken() + "S" + module.getSemesterTaken())
.append("Y" + module.getYearTaken() + " " + module.getSemesterTaken())
.append("; Grade: ")
.append(module.getGrade());
return builder.toString();
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/seedu/address/logic/commands/AddCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ public class AddCommand extends Command {
+ PREFIX_CODE + "Code "
+ PREFIX_YEAR + "Year "
+ PREFIX_SEMESTER + "Semester "
+ PREFIX_GRADE + "Grade "
+ PREFIX_GRADE + "Grade \n"
+ "Example: " + COMMAND_WORD + " "
+ PREFIX_CODE + "CS2103T "
+ PREFIX_YEAR + "2 "
+ PREFIX_SEMESTER + "1 "
+ PREFIX_SEMESTER + "SEMESTER_1 "
+ PREFIX_GRADE + "B ";

public static final String MESSAGE_SUCCESS = "New module added: %1$s";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
public class CalculateCapCommand extends Command {

public static final String COMMAND_WORD = "calculateCAP";
public static final String MESSAGE_CALCULATION_SUCCESS = "Calculated value: %1$s";
public static final String MESSAGE_CALCULATION_SUCCESS = "Calculated CAP: %1$s";

@Override
public CommandResult execute(Model model) throws CommandException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
public class CalculateMcCommand extends Command {

public static final String COMMAND_WORD = "calculateMC";
public static final String MESSAGE_CALCULATION_SUCCESS = "Calculated value: %1$s";
public static final String MESSAGE_CALCULATION_SUCCESS = "Total Modular Credits: %1$s";

@Override
public CommandResult execute(Model model) throws CommandException {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/seedu/address/logic/commands/DeleteCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public class DeleteCommand extends Command {
public static final String COMMAND_WORD = "delete";

public static final String MESSAGE_USAGE = COMMAND_WORD
+ ": Deletes the module identified by the module code. "
+ "Parameters: " + PREFIX_CODE + "code "
+ ": Deletes the module identified by the module code. \n"
+ "Parameters: " + PREFIX_CODE + "code \n"
+ "Example: " + COMMAND_WORD + " " + PREFIX_CODE + "CS2103T ";

public static final String MESSAGE_DELETE_MODULE_SUCCESS = "Deleted Module: %1$s";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class EditCommand extends Command {
+ "Example: " + COMMAND_WORD + " "
+ PREFIX_CODE + "CS2103T "
+ PREFIX_YEAR + "2 "
+ PREFIX_SEMESTER + "1 "
+ PREFIX_SEMESTER + "SEMESTER_1 "
+ PREFIX_GRADE + "IP";

public static final String MESSAGE_EDIT_MODULE_SUCCESS = "Edited Module: %1$s";
Expand Down

0 comments on commit 83798ac

Please sign in to comment.