Skip to content

Commit fe31414

Browse files
authored
Tripple dashes instead of a single dash in the table header (#102)
1 parent 6eb511b commit fe31414

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/builtin/content_table.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func renderTableContent(headers, values []tableCellTmpl, datactx plugin.MapData)
135135
buf.WriteByte('\n')
136136
buf.WriteByte('|')
137137
for range hstr {
138-
buf.WriteString("-")
138+
buf.WriteString("---")
139139
buf.WriteByte('|')
140140
}
141141
buf.WriteByte('\n')

internal/builtin/content_table_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (s *TableGeneratorTestSuite) TestNilQueryResult() {
5858
},
5959
})
6060
s.Equal(&plugin.Content{
61-
Markdown: "|User Name|User Age|\n|-|-|\n",
61+
Markdown: "|User Name|User Age|\n|---|---|\n",
6262
}, content)
6363
s.Nil(diags)
6464
}
@@ -85,7 +85,7 @@ func (s *TableGeneratorTestSuite) TestEmptyQueryResult() {
8585
},
8686
})
8787
s.Equal(&plugin.Content{
88-
Markdown: "|User Name|User Age|\n|-|-|\n",
88+
Markdown: "|User Name|User Age|\n|---|---|\n",
8989
}, content)
9090
s.Nil(diags)
9191
}
@@ -121,7 +121,7 @@ func (s *TableGeneratorTestSuite) TestBasic() {
121121
},
122122
})
123123
s.Equal(&plugin.Content{
124-
Markdown: "|User Name|User Age|\n|-|-|\n|John|42|\n|Jane|43|\n",
124+
Markdown: "|User Name|User Age|\n|---|---|\n|John|42|\n|Jane|43|\n",
125125
}, content)
126126
s.Nil(diags)
127127
}

0 commit comments

Comments
 (0)