svg_loader: fixing parsing empty elements

Self-closing tags (empty elements) were parsed until
the appearance of the '>' character, causing the '/'
char to be appended to the tag name. The final '/'
char should be omitted.
This commit is contained in:
Mira Grudzinska 2023-04-16 13:46:38 +02:00 committed by Hermet Park
parent bd695c6631
commit f089b77a45

View file

@ -2976,6 +2976,7 @@ static void _svgLoaderParserXmlOpen(SvgLoaderData* loader, const char* content,
//Parse the empty tag
attrs = content;
while ((attrs != nullptr) && *attrs != '>') attrs++;
if (empty) attrs--;
}
if (attrs) {