Closed l33the closed 5 years ago
Thanks a lot for reporting @TheSilentHorizon and thanks a lot for the fix as well! I will change it accordingly in the next days (and also check why you can't make a pull request)
@vandeseer i have to thank, your little TableAPI is a lifesaver 👍
Glad you find it useful :)
I changed the code accordingly and modified the test to include a row with cell spanning at the very beginning. Thanks again!
Please note that the version is still 0.0.xx, so I don't consider this being a mature library but something home-brew that is still in the making – hopefully though I will soon clean the API a bit, i.e. having more consistent method names etc. and bring it to 0.xx.xx and maybe adding breaking of text, row spanning, adding of images etc. one day as well ...
Since i cant make a pull request for whatever reason:
Theres a bug in the TableDrawer which causes glitches like this (replace this test with the actual one) :
You see, adding span on the second cell in a row works. But on the first one it turns to a unwanted result.
Simply replace:
columnCounter++;
with
columnCounter += cell.getSpan()
in your drawBackgroundAndText and drawBorders.
Regards