Skip to content

Commit bb1e21a

Browse files
committed
Cosmetic cleanup asciidoc module table
Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
1 parent 61cc005 commit bb1e21a

File tree

7 files changed

+32
-32
lines changed

7 files changed

+32
-32
lines changed

docs/reference/asciidoc-table.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ generates the following output:
120120

121121
[cols="a,a,a",options="header,autowidth"]
122122
|===
123-
|Name|Source|Version|
124-
|[[module_bar]] <<module_bar,bar>>|baz|4.5.6
125-
|[[module_baz]] <<module_baz,baz>>|baz|4.5.6
126-
|[[module_foo]] <<module_foo,foo>>|bar|1.2.3
127-
|[[module_foobar]] <<module_foobar,foobar>>|git@github.com:module/path|v7.8.9
123+
|Name |Source |Version
124+
|[[module_bar]] <<module_bar,bar>> |baz |4.5.6
125+
|[[module_baz]] <<module_baz,baz>> |baz |4.5.6
126+
|[[module_foo]] <<module_foo,foo>> |bar |1.2.3
127+
|[[module_foobar]] <<module_foobar,foobar>> |git@github.com:module/path |v7.8.9
128128
|===
129129

130130
== Resources

internal/format/templates/asciidoc_table_modules.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
{{ else }}
66
[cols="a,a,a",options="header,autowidth"]
77
|===
8-
|Name|Source|Version|
8+
|Name |Source |Version
99
{{- range .Module.ModuleCalls }}
10-
|{{ anchorNameAsciidoc "module" .Name }}|{{ .Source }}|{{ .Version }}
10+
|{{ anchorNameAsciidoc "module" .Name }} |{{ .Source }} |{{ .Version }}
1111
{{- end }}
1212
|===
1313
{{ end }}

internal/format/testdata/asciidoc/table-Base.golden

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ followed by another line of text.
6363

6464
[cols="a,a,a",options="header,autowidth"]
6565
|===
66-
|Name|Source|Version|
67-
|bar|baz|4.5.6
68-
|foo|bar|1.2.3
69-
|baz|baz|4.5.6
70-
|foobar|git@github.com:module/path|v7.8.9
66+
|Name |Source |Version
67+
|bar |baz |4.5.6
68+
|foo |bar |1.2.3
69+
|baz |baz |4.5.6
70+
|foobar |git@github.com:module/path |v7.8.9
7171
|===
7272

7373
== Resources

internal/format/testdata/asciidoc/table-IndentationOfFour.golden

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ followed by another line of text.
6363

6464
[cols="a,a,a",options="header,autowidth"]
6565
|===
66-
|Name|Source|Version|
67-
|bar|baz|4.5.6
68-
|foo|bar|1.2.3
69-
|baz|baz|4.5.6
70-
|foobar|git@github.com:module/path|v7.8.9
66+
|Name |Source |Version
67+
|bar |baz |4.5.6
68+
|foo |bar |1.2.3
69+
|baz |baz |4.5.6
70+
|foobar |git@github.com:module/path |v7.8.9
7171
|===
7272

7373
==== Resources

internal/format/testdata/asciidoc/table-OnlyModulecalls.golden

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
[cols="a,a,a",options="header,autowidth"]
44
|===
5-
|Name|Source|Version|
6-
|bar|baz|4.5.6
7-
|foo|bar|1.2.3
8-
|baz|baz|4.5.6
9-
|foobar|git@github.com:module/path|v7.8.9
5+
|Name |Source |Version
6+
|bar |baz |4.5.6
7+
|foo |bar |1.2.3
8+
|baz |baz |4.5.6
9+
|foobar |git@github.com:module/path |v7.8.9
1010
|===

internal/format/testdata/asciidoc/table-WithAnchor.golden

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ followed by another line of text.
6363

6464
[cols="a,a,a",options="header,autowidth"]
6565
|===
66-
|Name|Source|Version|
67-
|[[module_bar]] <<module_bar,bar>>|baz|4.5.6
68-
|[[module_foo]] <<module_foo,foo>>|bar|1.2.3
69-
|[[module_baz]] <<module_baz,baz>>|baz|4.5.6
70-
|[[module_foobar]] <<module_foobar,foobar>>|git@github.com:module/path|v7.8.9
66+
|Name |Source |Version
67+
|[[module_bar]] <<module_bar,bar>> |baz |4.5.6
68+
|[[module_foo]] <<module_foo,foo>> |bar |1.2.3
69+
|[[module_baz]] <<module_baz,baz>> |baz |4.5.6
70+
|[[module_foobar]] <<module_foobar,foobar>> |git@github.com:module/path |v7.8.9
7171
|===
7272

7373
== Resources

internal/format/testdata/asciidoc/table-WithRequired.golden

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ followed by another line of text.
6363

6464
[cols="a,a,a",options="header,autowidth"]
6565
|===
66-
|Name|Source|Version|
67-
|bar|baz|4.5.6
68-
|foo|bar|1.2.3
69-
|baz|baz|4.5.6
70-
|foobar|git@github.com:module/path|v7.8.9
66+
|Name |Source |Version
67+
|bar |baz |4.5.6
68+
|foo |bar |1.2.3
69+
|baz |baz |4.5.6
70+
|foobar |git@github.com:module/path |v7.8.9
7171
|===
7272

7373
== Resources

0 commit comments

Comments
 (0)