MCPcopy Create free account
hub / github.com/breck7/scroll / _getXmlContent

Method _getXmlContent

external/.scrollLibs.js:15736–15739  ·  view source on GitHub ↗
(indentCount)

Source from the content-addressed store, hash-verified

15734 return this.atoms.map((atom, index) => `<span class="atom${index}">${Utils.stripHtml(atom)}</span>`).join(`<span class="zIncrement">${this.atomBreakSymbol}</span>`)
15735 }
15736 _getXmlContent(indentCount) {
15737 if (this.content !== undefined) return this.contentWithSubparticles
15738 return this.length ? `${indentCount === -1 ? "" : "\n"}${this._subparticlesToXml(indentCount > -1 ? indentCount + 2 : -1)}${" ".repeat(indentCount)}` : ""
15739 }
15740 _toXml(indentCount) {
15741 const indent = " ".repeat(indentCount)
15742 const tag = this.cue

Callers 1

_toXmlMethod · 0.95

Calls 1

_subparticlesToXmlMethod · 0.95

Tested by

no test coverage detected