When processing characters in attribute values that should be escaped (e.g.
`"`), `gv2gml` would emit these as-is, resulting in invalid GML output. Such
attribute values are now correctly XML-escaped.
Fixes #1276.
- Msys experimental packages are included in release artifacts #2130
- CMake build system incorrectly aliases gv2gml to gml2gv #2131
+- Gv2gml Doesn't escape quotes in attributes #1276
## [2.49.1] – 2021-09-22
#include <getopt.h>
#include <cgraph/cgraph.h>
+#include <common/types.h>
+#include <common/utils.h>
#include <ctype.h>
#include <ingraphs/ingraphs.h>
if (isNumber (value))
fprintf (outFile, "%s %s\n", name, value);
else
- fprintf (outFile, "%s \"%s\"\n", name, value);
+ fprintf (outFile, "%s \"%s\"\n", name, xml_string(value));
}
/* node attributes:
@pytest.mark.skipif(shutil.which("gv2gml") is None,
reason="gv2gml not available")
-@pytest.mark.xfail(strict=True)
def test_1276():
"""
quotes within a label should be escaped in translation to GML