| 20048 | * @returns {Summary} summary instance |
| 20049 | */ |
| 20050 | emptyBuffer() { |
| 20051 | this._buffer = ""; |
| 20052 | return this; |
| 20053 | } |
| 20054 | /** |
| 20055 | * Adds raw text to the summary buffer |
| 20056 | * |
| 20057 | * @param {string} text content to add |
| 20058 | * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false) |
| 20059 | * |
| 20060 | * @returns {Summary} summary instance |
| 20061 | */ |
| 20062 | addRaw(text, addEOL = false) { |
| 20063 | this._buffer += text; |
| 20064 | return addEOL ? this.addEOL() : this; |
| 20065 | } |
| 20066 | /** |
| 20067 | * Adds the operating system-specific end-of-line marker to the buffer |
| 20068 | * |
| 20069 | * @returns {Summary} summary instance |
| 20070 | */ |
| 20071 | addEOL() { |
| 20072 | return this.addRaw(import_os.EOL); |
| 20073 | } |
| 20074 | /** |
| 20075 | * Adds an HTML codeblock to the summary buffer |
| 20076 | * |
| 20077 | * @param {string} code content to render within fenced code block |
| 20078 | * @param {string} lang (optional) language to syntax highlight code |
| 20079 | * |