intel/genxml: Ignore tail leading/trailing whitespace in node_validator()
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 15 Aug 2023 22:26:34 +0000 (15:26 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 6 Sep 2023 06:51:48 +0000 (06:51 +0000)
commitd8038c8d096f968e61edbb6b5501f7ef382a011e
tree77356849c3db21e14159de53dab7c590664d2b81
parent5d37359f324b167bf12a37952cee4fe0cf9ab4c8
intel/genxml: Ignore tail leading/trailing whitespace in node_validator()

When importing or flattening genxml with the genxml_import.py script
in MR !20593, it can lead to the tail portion of xml items differing
in whitespace.

If we strip the trailing and leading whitespace from the tail string,
and the strings are equivalent, then we can consider the xml items to
be equivalent.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24903>
src/intel/genxml/intel_genxml.py