implement simple idea from @eproxus that works for erlang 16 and 17 and works with edoc