From d2dcdafde6bd9003f0d3088bacf75dd1f5f56b38 Mon Sep 17 00:00:00 2001 From: Amund Tenstad Date: Wed, 16 Aug 2023 10:08:58 +0200 Subject: [PATCH] fix: md linebreaks Signed-off-by: Amund Tenstad --- templates/markdown/type.tpl | 2 +- test/expected.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/markdown/type.tpl b/templates/markdown/type.tpl index 5a750bd..2bcb35e 100644 --- a/templates/markdown/type.tpl +++ b/templates/markdown/type.tpl @@ -36,7 +36,7 @@ _Appears in:_ {{ end -}} {{ range $type.Members -}} -| `{{ .Name }}` _{{ markdownRenderType .Type }}_ | {{ template "type_members" . }} | {{ .Default }} | {{ range .Validation -}} {{ . }}
{{ end }} | +| `{{ .Name }}` _{{ markdownRenderType .Type }}_ | {{ template "type_members" . }} | {{ .Default }} | {{ range .Validation -}} {{ . }}
{{ end }} | {{ end -}} {{ end -}} diff --git a/test/expected.md b/test/expected.md index f3243b4..57c56a1 100644 --- a/test/expected.md +++ b/test/expected.md @@ -93,7 +93,7 @@ _Appears in:_ | `name` _string_ | Name of the guest (pipe | should be escaped) | | | | `time` _[Time](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#time-v1-meta)_ | Time of entry | | | | `comment` _string_ | Comment by guest | | | -| `rating` _[Rating](#rating)_ | Rating is the rating provided by a guest. | | MaxLength: 1023
| +| `rating` _[Rating](#rating)_ | Rating is the rating provided by a guest. | | MaxLength: 1023
| #### GuestbookHeader @@ -140,7 +140,7 @@ _Appears in:_ | Field | Description | Default | Validation | | --- | --- | --- | --- | -| `page` _[PositiveInt](#positiveint)_ | Page indicates the page number | 1 | Min: 1
| +| `page` _[PositiveInt](#positiveint)_ | Page indicates the page number | 1 | Min: 1
| | `entries` _[GuestbookEntry](#guestbookentry) array_ | Entries contain guest book entries for the page | | | | `selector` _[LabelSelector](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#labelselector-v1-meta)_ | Selector selects something | | | | `headers` _[GuestbookHeader](#guestbookheader) array_ | Headers contains a list of header items to include in the page | | |