mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-29 15:34:09 +02:00
Fix regression introduced when inlining "Required" with description
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. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
c5d7eb7a2d
commit
5c7d5eb3db
|
|
@ -313,7 +313,7 @@ resolve-additional-types.)
|
||||||
Prepend "Required:" to make it part of the first paragraph of the
|
Prepend "Required:" to make it part of the first paragraph of the
|
||||||
description.
|
description.
|
||||||
*/}}
|
*/}}
|
||||||
{{- $description = printf "<strong>Required: </strong>%s" $description -}}
|
{{- $description = printf "<strong>Required: </strong>%s" (default "" $description) -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{/*
|
{{/*
|
||||||
Force the rendering as a block so the description is always inside a
|
Force the rendering as a block so the description is always inside a
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue