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