def text.path.finish
gralha-svg-render@0.1.0.1 · svg.bend:3583
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
3583def text.path.finish(+xs: List<&2, XML.Element>) -> List<&2, XML.Element>:
3584 match xs:
3585 case Nil{}: Nil{}
3586 case Con{XML.Element{n, as, kids, txt}, rest}:
3587 Con{XML.Element{n, as, U.branch(List<&2, XML.Element>, U.string.equal(XML.attr.get(as, "#text-path", ""), "1"), _ => text.path.mapped(kids, as), _ => text.path.finish(kids)), txt}, text.path.finish(rest)}