(indentCount, withSuid)
| 22782 | return elem |
| 22783 | } |
| 22784 | _toHtml(indentCount, withSuid) { |
| 22785 | const tag = this.getTag() |
| 22786 | const children = this.map(child => child._toHtml(indentCount + 1, withSuid)).join("") |
| 22787 | const attributesStr = this.filter(particle => particle.isAttributeParser) |
| 22788 | .map(child => child.getAttribute()) |
| 22789 | .join("") |
| 22790 | const indent = " ".repeat(indentCount) |
| 22791 | const collapse = this.shouldCollapse() |
| 22792 | const indentForChildParsers = !collapse && this.getSubparticleInstancesOfParserId("htmlTagParser").length > 0 |
| 22793 | const suid = withSuid ? ` stumpUid="${this._getUid()}"` : "" |
| 22794 | const oneLiner = this._getOneLiner() |
| 22795 | return `${!collapse ? indent : ""}<${tag}${attributesStr}${suid}>${oneLiner}${indentForChildParsers ? "\n" : ""}${children}</${tag}>${collapse ? "" : "\n"}` |
| 22796 | } |
| 22797 | removeCssStumpParticle() { |
| 22798 | return this.removeStumpParticle() |
| 22799 | } |
no test coverage detected