Skip to content

Fix write typespec to handle lists of strings#7

Merged
camelpunch merged 1 commit intocode-supply:mainfrom
sax:fix-typespec
Mar 6, 2025
Merged

Fix write typespec to handle lists of strings#7
camelpunch merged 1 commit intocode-supply:mainfrom
sax:fix-typespec

Conversation

@sax
Copy link
Contributor

@sax sax commented Feb 27, 2025

I found that the following code would give me a dialyzer error that my function would never return.

    Mudbrick.new(compress: true, fonts: %{bodoni: Extra.Font.bodoni_regular()})
    |> Mudbrick.page(size: Mudbrick.Page.size(:a4))
    |> Mudbrick.text(
      [
        "Name: ",
        "Stuff:\n"
      ],
      auto_kern: true,
      font: :bodoni,
      font_size: 12,
      leading: 18,
      position: {26, height - 48}
    )
    |> Mudbrick.render()

@camelpunch camelpunch merged commit 96f1c15 into code-supply:main Mar 6, 2025
@camelpunch
Copy link
Contributor

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments