* Flushes current line and starts a new line. New line starts at previously configured indentation level * @returns
()
| 72 | * @returns |
| 73 | */ |
| 74 | newLine(): this { |
| 75 | this.lines.push(this.indentedCurrentLine()) |
| 76 | this.currentLine = '' |
| 77 | this.marginSymbol = undefined |
| 78 | |
| 79 | const afterNextNewLineCallback = this.afterNextNewLineCallback |
| 80 | this.afterNextNewLineCallback = undefined |
| 81 | afterNextNewLineCallback?.() |
| 82 | return this |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * Increases indentation level by 1, calls provided callback and then decreases indentation again. |
no test coverage detected