diff --git a/src/edown_layout.erl b/src/edown_layout.erl index 0bad2ab78da39bbd9534f74b2d12eb108f07f21b..b8c0422d92bac4ae576c91612499f1b323ec49fc 100644 --- a/src/edown_layout.erl +++ b/src/edown_layout.erl @@ -898,6 +898,8 @@ t_type([#xmlElement{name = 'fun', content = Es}]) -> ["fun("] ++ t_fun(Es) ++ [")"]; t_type([E = #xmlElement{name = record, content = Es}]) -> t_record(E, Es); +t_type([#xmlElement{name = map}]) -> + t_map(); t_type([E = #xmlElement{name = abstype, content = Es}]) -> t_abstype(E, Es); t_type([#xmlElement{name = union, content = Es}]) -> @@ -949,6 +951,9 @@ t_record(E, Es) -> see(E, Name) ++ ["{"] ++ seq(fun t_field/1, Fs, ["}"]) end. +t_map() -> + ["#{}"]. + t_field(#xmlElement{content = Es}) -> t_type(get_elem(atom, Es)) ++ [" = "] ++ t_utype(get_elem(type, Es)).