edown icon indicating copy to clipboard operation
edown copied to clipboard

Add support for function specs with multiple clauses

Open dumbbell opened this issue 4 years ago • 0 comments

Here is an example:

-spec f(foo) -> bar;
       (bar) -> baz.

Before this patch, rendering the docs with rebar3 would crash with the following exception:

edoc: error in layout 'edown_layout': {'EXIT',
                                 {{case_clause,
                                   [{xmlElement,typespec,[],[],
                                     {xmlNamespace,[],[]},
                                     [{function,27},{functions,2},{module,1}],
				     ...

Fixes uwiger/edown#23.

dumbbell avatar Oct 27 '21 13:10 dumbbell