I have this issue where I use PrettyTable to generate tables with content coming from a json fileJson file I get the correct layout in terminalPrinting in terminal but when i put it inside a jinja file the spacing are messed upOutput of jinja using PIL to obtain an image
Here's the code for creating the tableCode for table And here's the jinja2 part Jinja code
I tried to change the parameters of Prettytable for column width but without success. Do I need to use len() on the string that I use and then reduce or add space to produce a correct ouput ?