From 107af02e119b3fbb5c47bdaf05650f8fa8bdfe25 Mon Sep 17 00:00:00 2001 From: Chee Hong Date: Mon, 20 Mar 2023 02:25:43 +0800 Subject: [PATCH] Fix TesterResponse & IssueDispute representation (#1175) Fix TesterResponse & IssueDispute representation Let's update the string representation of TesterResponse and IssueDispute to use the new line separator
instead of `--------------`. --- package.json | 2 +- src/app/core/models/issue-dispute.model.ts | 2 +- src/app/core/models/tester-response.model.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e0c13a3e3..49671dcc8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "CATcher", - "version": "3.4.6", + "version": "3.4.7", "main": "main.js", "scripts": { "postinstall": "npm run postinstall:electron && electron-builder install-app-deps", diff --git a/src/app/core/models/issue-dispute.model.ts b/src/app/core/models/issue-dispute.model.ts index c68bd0e2f..020905e60 100644 --- a/src/app/core/models/issue-dispute.model.ts +++ b/src/app/core/models/issue-dispute.model.ts @@ -3,7 +3,7 @@ export class IssueDispute { readonly TODO_DESCRIPTION = 'Done'; readonly INITIAL_RESPONSE = '[replace this with your explanation]'; readonly TITLE_PREFIX = '## :question: '; - readonly LINE_BREAK = '-------------------\n'; + readonly LINE_BREAK = '
\n'; title: string; // e.g Issue severity description: string; // e.g Team says: xxx\n Tester says: xxx. tutorResponse: string; // e.g Not justified. I've changed it back. diff --git a/src/app/core/models/tester-response.model.ts b/src/app/core/models/tester-response.model.ts index 3f761b453..355577d43 100644 --- a/src/app/core/models/tester-response.model.ts +++ b/src/app/core/models/tester-response.model.ts @@ -4,7 +4,7 @@ export class TesterResponse { readonly TITLE_PREFIX = '## :question: '; readonly DISAGREEMENT_PREFIX = '**Reason for disagreement:** '; readonly INITIAL_RESPONSE = '[replace this with your explanation]'; - readonly LINE_BREAK = '-------------------\n'; + readonly LINE_BREAK = '
\n'; title: string; // e.g Issue Severity description: string; // e.g Team chose `Low`. Originally `High`. disagreeCheckbox: Checkbox; // e.g - [x] I disagree