astanin / python-tabulate

Pretty-print tabular data in Python, a library and a command-line utility. Repository migrated from bitbucket.org/astanin/python-tabulate.
https://pypi.org/project/tabulate/
MIT License
2.1k stars 163 forks source link

Bugfix in tables without linebetweenrows #255

Open helviojunior opened 1 year ago

helviojunior commented 1 year ago

Before

╭───────┬──────────────────────────────────────────────╮
│       │ File: /tmp/teste.json                        │
├───────┼──────────────────────────────────────────────┤
│    1  │ {                                            │
│    2  │   "id":
"d35c4561-abb3-4fa5-8103-c0a88ca9eb50",                                              │
│    3  │   "name": "CCat Test",                       │
│    4  │   "values": [                                │
│    5  │     {                                        │
│    6  │       "key": "url",                          │
│    7  │       "value": "",                           │
│    8  │       "enabled": true                        │
│    9  │     }                                        │
│   10  │   ],                                         │
│   11  │   "_postman_variable_scope": "environment",  │
│   12  │   "_postman_exported_at":
"2019-10-24T12:33:17.368Z",                                              │
│   13  │   "_postman_exported_using": "Postman/7.9.0" │
│   14  │ }                                            │
╰───────┴──────────────────────────────────────────────╯

After

╭───────┬──────────────────────────────────────────────╮
│       │ File: /tmp/teste.json                        │
├───────┼──────────────────────────────────────────────┤
│    1  │ {                                            │
│    2  │   "id":                                      │
│       │ "d35c4561-abb3-4fa5-8103-c0a88ca9eb50",      │
│    3  │   "name": "CCat Test",                       │
│    4  │   "values": [                                │
│    5  │     {                                        │
│    6  │       "key": "url",                          │
│    7  │       "value": "",                           │
│    8  │       "enabled": true                        │
│    9  │     }                                        │
│   10  │   ],                                         │
│   11  │   "_postman_variable_scope": "environment",  │
│   12  │   "_postman_exported_at":                    │
│       │ "2019-10-24T12:33:17.368Z",                  │
│   13  │   "_postman_exported_using": "Postman/7.9.0" │
│   14  │ }                                            │
╰───────┴──────────────────────────────────────────────╯