disable handling unsupported attributes (leaving only well-known unsupported elements) to reduce verbosity.
This commit is contained in:
parent
3ae71eea0f
commit
b164117d99
1 changed files with 5 additions and 2 deletions
|
@ -112,7 +112,7 @@ static std::array<unsigned, 7> const unsupported_elements
|
|||
name_to_int("a")}
|
||||
};
|
||||
|
||||
|
||||
#if 0 // disable to reduce verbosity
|
||||
static std::array<unsigned, 43> const unsupported_attributes
|
||||
{ {name_to_int("alignment-baseline"),
|
||||
name_to_int("baseline-shift"),
|
||||
|
@ -158,6 +158,8 @@ static std::array<unsigned, 43> const unsupported_attributes
|
|||
name_to_int("writing-mode")}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
template <typename T>
|
||||
void handle_unsupported(svg_parser& parser, T const& ar, char const* name)
|
||||
{
|
||||
|
@ -697,7 +699,8 @@ void parse_attr(svg_parser & parser, char const* name, char const* value )
|
|||
}
|
||||
break;
|
||||
default:
|
||||
handle_unsupported(parser, unsupported_attributes, name);
|
||||
//handle_unsupported(parser, unsupported_attributes, name);
|
||||
// disable for now to reduce verbosity
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue