ExDoc unexpected multi-line @spec

For hex package islands_score the source @spec for function format/2 is as such:

@spec format(t, keyword) :: :ok

Why does it show on 4 lines in the ExDoc html documentation:


A few ExDoc versions ago it appeared on a single line as expected:
image

That’s weird. Seems to be something funny going on with keyword(). Changing it to [{atom(), atom()}] or Keyword.t() puts it back on one line.

I opened an ex_doc issue and it will be fixed in a future (hopefully next) version:
Closed #2245 as completed via a806765.
[Solved]

1 Like