()
| 999 | return this; |
| 1000 | } |
| 1001 | toString() { |
| 1002 | const body = this.sources |
| 1003 | .map((source, i) => { |
| 1004 | const separator = source.separator !== void 0 ? source.separator : this.separator; |
| 1005 | const str = (i > 0 ? separator : '') + source.content.toString(); |
| 1006 | return str; |
| 1007 | }) |
| 1008 | .join(''); |
| 1009 | return this.intro + body; |
| 1010 | } |
| 1011 | isEmpty() { |
| 1012 | if (this.intro.length && this.intro.trim()) return false; |
| 1013 | if (this.sources.some((source) => !source.content.isEmpty())) return false; |