1
0
Fork 0

addText -> add, newline by default

pull/1014/head
Rob Herley 2022-02-23 18:15:26 -05:00
parent 7a2eceac36
commit d496b07cc0
No known key found for this signature in database
GPG Key ID: D1602042C3543B06
1 changed files with 2 additions and 2 deletions

View File

@ -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
}