nushell/crates/nu_plugin_query/src
James Chen-Smith b974f8f7e3
Include empty table data cells in query web tables (#13538)
# Description

Empty cells were being skipped, causing data to appear in the wrong
columns. By including the cells, data should appear in the correct
columns now. Fixes #10194.

Before:

```
$ [[a b c]; [1 null 3] [4 5 6]] | to html --partial | query web --as-table [a b c]
╭───┬───┬───┬─────────────────────╮
│ # │ a │ b │          c          │
├───┼───┼───┼─────────────────────┤
│ 0 │ 1 │ 3 │ Missing column: 'c' │
│ 1 │ 4 │ 5 │ 6                   │
╰───┴───┴───┴─────────────────────╯
```

After:

```
$ [[a b c]; [1 null 3] [4 5 6]] | to html --partial | query web --as-table [a b c]
╭───┬───┬───┬───╮
│ # │ a │ b │ c │
├───┼───┼───┼───┤
│ 0 │ 1 │   │ 3 │
│ 1 │ 4 │ 5 │ 6 │
╰───┴───┴───┴───╯
```

Co-authored-by: James Chen-Smith <jameschensmith@gmail.com>
2024-08-05 06:20:14 -05:00
..
lib.rs feat: add query webpage-info to plugin_nu_query (#13252) 2024-06-29 16:13:31 -05:00
main.rs Add support for engine calls from plugins (#12029) 2024-03-09 11:26:30 -06:00
query_json.rs Change PluginCommand API to be more like Command (#12279) 2024-03-27 11:59:57 +01:00
query_web.rs Fix internal panic for query web (#13507) 2024-08-02 21:47:18 +02:00
query_webpage_info.rs Use conventional generic bounds (#13360) 2024-07-12 17:13:07 +08:00
query_xml.rs Make query xml return nodes in document order (#13047) 2024-06-05 09:47:36 +08:00
query.rs feat: add query webpage-info to plugin_nu_query (#13252) 2024-06-29 16:13:31 -05:00
web_tables.rs Include empty table data cells in query web tables (#13538) 2024-08-05 06:20:14 -05:00