mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 06:30:08 +02:00
Improve <table> output of 'to html', (#5699)
* Fix <table> output of 'to html', Specifically, add <thead> and <tbody> elements. That allows for better styling and (future) some neat JavaScript. * Update tests for previous <table> changes.
This commit is contained in:
@ -41,7 +41,7 @@ fn out_html_table() {
|
||||
|
||||
assert_eq!(
|
||||
actual.out,
|
||||
r"<html><style>body { background-color:white;color:black; }</style><body><table><tr><th>name</th></tr><tr><td>darren</td></tr></table></body></html>"
|
||||
r"<html><style>body { background-color:white;color:black; }</style><body><table><thead><tr><th>name</th></tr></thead><tbody><tr><td>darren</td></tr></tbody></table></body></html>"
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user