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

Method _getLineHtml

external/.scrollLibs.js:15733–15735  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15731 return !this.length
15732 }
15733 _getLineHtml() {
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)}` : ""

Callers 1

_toHtmlMethod · 0.95

Calls 3

mapMethod · 0.80
stripHtmlMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected