Skip to content

Commit

Permalink
Tripple dashes instead of a single dash in the table header (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
traut authored Feb 18, 2024
1 parent 6eb511b commit fe31414
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/builtin/content_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func renderTableContent(headers, values []tableCellTmpl, datactx plugin.MapData)
buf.WriteByte('\n')
buf.WriteByte('|')
for range hstr {
buf.WriteString("-")
buf.WriteString("---")
buf.WriteByte('|')
}
buf.WriteByte('\n')
Expand Down
6 changes: 3 additions & 3 deletions internal/builtin/content_table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (s *TableGeneratorTestSuite) TestNilQueryResult() {
},
})
s.Equal(&plugin.Content{
Markdown: "|User Name|User Age|\n|-|-|\n",
Markdown: "|User Name|User Age|\n|---|---|\n",
}, content)
s.Nil(diags)
}
Expand All @@ -85,7 +85,7 @@ func (s *TableGeneratorTestSuite) TestEmptyQueryResult() {
},
})
s.Equal(&plugin.Content{
Markdown: "|User Name|User Age|\n|-|-|\n",
Markdown: "|User Name|User Age|\n|---|---|\n",
}, content)
s.Nil(diags)
}
Expand Down Expand Up @@ -121,7 +121,7 @@ func (s *TableGeneratorTestSuite) TestBasic() {
},
})
s.Equal(&plugin.Content{
Markdown: "|User Name|User Age|\n|-|-|\n|John|42|\n|Jane|43|\n",
Markdown: "|User Name|User Age|\n|---|---|\n|John|42|\n|Jane|43|\n",
}, content)
s.Nil(diags)
}
Expand Down

0 comments on commit fe31414

Please sign in to comment.