()
| 310 | } |
| 311 | |
| 312 | toString(): string { |
| 313 | const body = this.sources |
| 314 | .map((source, i) => { |
| 315 | const separator = source.separator !== undefined ? source.separator : this.separator |
| 316 | const str = (i > 0 ? separator : '') + source.content.toString() |
| 317 | |
| 318 | return str |
| 319 | }) |
| 320 | .join('') |
| 321 | |
| 322 | return this.intro + body |
| 323 | } |
| 324 | |
| 325 | isEmpty(): boolean { |
| 326 | if (this.intro.length && this.intro.trim()) |