Merge pull request #18915 from dvdksn/cli-multiline-desc

hugo: handle multiline flag descriptions
This commit is contained in:
David Karlsson 2023-12-13 21:38:04 +01:00 committed by GitHub
commit f94191c981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -113,7 +113,8 @@
{{ partial "components/badge.html" (dict "color" "blue" "content" "Swarm") }}
{{ end }}
{{ if .description }}
{{ $.RenderString .description }}
{{/* replace newlines in long desc with break tags */}}
{{ markdownify (strings.Replace .description "\n" "<br>") }}
{{ end }}
</td>
</tr>