Skip to content

Commit 1ea4ca9

Browse files
committed
format
1 parent f95a26f commit 1ea4ca9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/svgdom/parser.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,13 +301,16 @@ void parser::fill_rectangle(rectangle& r, const rectangle& default_values)
301301

302302
void parser::fill_referencing(referencing& e)
303303
{
304-
auto a = this->find_attribute_of_namespace(xml_namespace::xlink, "href");
304+
auto a = this->find_attribute_of_namespace(
305+
xml_namespace::xlink, //
306+
"href"
307+
);
305308
if (!a) {
309+
// In some SVG documents the svg namespace is used instead of xlink, though this is against SVG spec we allow to do so.
306310
a = this->find_attribute_of_namespace(
307-
xml_namespace::svg,
311+
xml_namespace::svg, //
308312
"href"
309-
); // in some SVG documents the svg namespace is used instead of xlink, though this is against SVG spec we allow
310-
// to do so.
313+
);
311314
}
312315
if (a) {
313316
e.iri = *a;

0 commit comments

Comments
 (0)