PyExcelerate icon indicating copy to clipboard operation
PyExcelerate copied to clipboard

Styles do not get applied on rows with no data

Open kevmo314 opened this issue 5 years ago • 3 comments

kevmo314 avatar Jul 18 '20 02:07 kevmo314

Hi @kevmo314 ,

I would like to take this up,

I have been using the module for its simplicity.

Would like to contribute my part.

I m naive and a beginner towards open source contribution , if u can help me with some pointers on the issue , i ll gladly take this up

vaebhav avatar Aug 14 '20 21:08 vaebhav

Hey @vaebhav thanks for the offer! I believe the gist of the problem is PyExcelerate doesn't generate cell data for rows with no data (intentionally) here: https://github.com/kz26/PyExcelerate/blob/dev/pyexcelerate/Worksheet.py#L352

This doesn't work when there are styles applied. I think we can change the cell style assignment to assign an empty string to the cell if there's no data. The tricky part about this issue is solving it in a way that Excel accepts though, it can get a little difficult with row styles.

kevmo314 avatar Aug 14 '20 21:08 kevmo314

Hi @kevmo314 , Thank you for your response.

I'll go over the function call that you have suggested , and take a stab at it. I fully dont understand the codebase for PyExcelerate , I'll walk myself through and keep you updated on the progress on this

Do you have a sample data that I can work with to test this with ?

vaebhav avatar Aug 15 '20 06:08 vaebhav