I am not sure how to draw a table like as below, I tried using prettytable but not able to put multiple line in one cell.
NB: Number of lines should be based on the number of the string, so I want to put some n string per line.
Could some one please help?
+---- +-------------------+-------------------------------------------------------+
| Id | Name | Comment |
+-----+-------------------+-------------------------------------------------------+
| 1 | Alvina Skiles | Dolor qui rerum est sed. Sed ipsa repudiandae et |
| | | Non explicabo voluptas impedit rerum dignissimos. |
| | | Minima voluptatibus sint voluptates similique.' |
+-----+-------------------+-------------------------------------------------------+
| 2 | Chasity Lakin | Nesciunt ea voluptatem rerum eos rerum ut soluta |
| | | Animi totam rerum fugiat consectetur odio et |
| | | repellendus |
+-----+-------------------+-------------------------------------------------------+
| 3 | Miss Brennan Kiehn| Nulla placeat saepe voluptatem molestias dolores ex |
| | | Reiciendis nostrum adipisci qui enim explicabo. |
+-----+-------------------+-------------------------------------------------------+
Here is my data structure to construct the table:
[
{
"id": "1",
"name": "Alvina Skiles",
"comment": 'Dolor qui rerum est sed. Sed ipsa repudiandae et. Non explicabo voluptas impedit rerum dignissimos. Minima voluptatibus
},
{
"id": "2",
"name" : 'Chasity Lakin',
"comment": 'Nesciunt ea voluptatem rerum eos rerum ut soluta. Animi totam rerum fugiat consectetur odio et repellendus.',
},
{
"id": "3",
"name" : 'Miss Brennan Kiehn',
"comment": 'Nulla placeat saepe voluptatem molestias dolores ex. Reiciendis nostrum adipisci qui enim explicabo.
},
]