I just asked for registration of PrettyTables v0.11. There is some improvements and bug fixes in all backends. However, the major change in this release is the alignment system based on anchors for the text backend. Now, you can define regexes in columns that creates anchors to align the text. Hence, we can, for example, align floating points very easily:
For markdown, certainly. I am planning to create a custom markdown backend based on a (very very) much simple version of Text backend. However, for LaTeX, I can do this as soon as someone tell me how it can be done
I need help. I am cleaning the code so that we can reach v1.0 in which Text back-end will be declared stable. In this process I am correcting some terrible choices I did in the past. For example, I was creating two auxiliary tables, one with the strings and another with the cell lengths. My original idea was to save a lot of calls to textwidth. However, it turns out that textwidth is incredibly fast, way faster than allocating an array with the same size of the printed table.
Hence, I did a lot of modifications to master trying to clean everything I can. This reduced allocation, and improved the performance a little bit. The only minor drawback is when you have Markdown cells. In this case, I cannot use textwidth because those cells has ANSI escape characters. Thus, I need to remove them and then compute the width. Conclusion: printing cells with Markdown is a little slower (1 to 5% in my benchmarks).
Thus, I will appreciate if anyone can clone master and do a stress test to see if I missed something. Of course, all the tests are passing, but I could have overlooked something given the amount of configurations we have.