disable handling unsupported attributes (leaving only well-known unsupported elements) to reduce verbosity.

This commit is contained in:
artemp 2017-07-07 10:09:08 +02:00
parent 3ae71eea0f
commit b164117d99

View file

@ -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;
}
}