9a185d78ca
This removes a bunch of hand-written code, and allows for fewer corner cases. The resulting code has some minor differences (no empty newlines and the encoding is declared in the xml declaration) Reviewed-by: Eric Engestrom <eric@engestrom.ch> Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Jordan Justen <jordan.l.justen@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18955>