matrix-org / matrix-spec

The Matrix protocol specification
Apache License 2.0
197 stars 97 forks source link

Fix regression introduced when inlining "Required" with description #2005

Open zecakeh opened 3 days ago

zecakeh commented 3 days ago

This was a regression in the rendered spec introduced in #1969.

If the description is not set in the object definition, Hugo generates a weird string after "Required": %!s(<nil>).

To avoid that, we default the description to an empty string when it is not set.

Example, in the m.text definition:

Before:

image

After:

image

Pull Request Checklist

Preview: https://pr2005--matrix-spec-previews.netlify.app