mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-09 06:04:03 +00:00
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:
parent
bd695c6631
commit
f089b77a45
1 changed files with 1 additions and 0 deletions
|
@ -2976,6 +2976,7 @@ static void _svgLoaderParserXmlOpen(SvgLoaderData* loader, const char* content,
|
||||||
//Parse the empty tag
|
//Parse the empty tag
|
||||||
attrs = content;
|
attrs = content;
|
||||||
while ((attrs != nullptr) && *attrs != '>') attrs++;
|
while ((attrs != nullptr) && *attrs != '>') attrs++;
|
||||||
|
if (empty) attrs--;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (attrs) {
|
if (attrs) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue