def text.paint.group
gralha-svg-render@0.1.0.1 · svg.bend:3671
import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U
import gralha-xml-doc@0.1.0.1/xml.bend as XML
3671def text.paint.group(+xs: List<&2, XML.Element>) -> List<&2, XML.Element>:
3672 match xs:
3673 case Nil{}: Nil{}
3674 case Con{XML.Element{n, as, kids, txt}, rest}:
3675 +name = n
3676 U.branch(List<&2, XML.Element>, U.string.equal(name, "#glyph"), _ => text.paint.run(text.paint.take(xs, Nil{}), remaining => text.paint.group(remaining)),
3677 _ => Con{XML.Element{name, as, text.paint.group(kids), txt}, text.paint.group(rest)})