From d496b07cc0579f1117d0c2917dab019f8c58e5f1 Mon Sep 17 00:00:00 2001 From: Rob Herley Date: Wed, 23 Feb 2022 18:15:26 -0500 Subject: [PATCH] addText -> add, newline by default --- packages/core/src/summary.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/summary.ts b/packages/core/src/summary.ts index d788a78d..470655a0 100644 --- a/packages/core/src/summary.ts +++ b/packages/core/src/summary.ts @@ -67,10 +67,10 @@ export class MarkdownSummary { /** * Adds text to the summary * @param {string} text content to add - * @param {boolean} [newline=false] whether or not to add a newline + * @param {boolean} [newline=true] whether or not to add a newline * @returns {MarkdownSummary} markdown summary instance */ - addText(text: string, newline = false): MarkdownSummary { + add(text: string, newline = true): MarkdownSummary { this.buffer += text return newline ? this.addNewline() : this }