-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Writer\Html output is much too large #1235
Comments
Looking at the source code I would suggest that in Html::generateSheetData() the line
should be replaced by
That would do the job I believe. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Any feedback if this feature make sense ? |
Only the stale bot is responding to my tickets as well. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Up |
I guess it makes sense. Have any of you had a look a git blame to see if there is a reason why we don't already do that? |
Should I make a Pull Request ? |
Pull Request raised : Writer\Html output is much too large #1537 |
This is:
What is the expected behavior?
When using the save method from PhpOffice\PhpSpreadsheet\Writer\Html, we could expect that only the usefull data is being outputed. This works fine for PhpOffice\PhpSpreadsheet\Writer\Csv.
What is the current behavior?
Currently PhpOffice\PhpSpreadsheet\Writer\Html uses the method Worksheet::calculateWorksheetDimension() which is relying on Worksheet::getHighestColumn().
In this case it could be better to rely on Worksheet::getHighestDataColumn(). This would avoid displaying a lot of empty cells on the right side of the html table. HTML file would also be much smaller.
What are the steps to reproduce?
Call PhpOffice\PhpSpreadsheet\Writer\Html::save() and have the generated file rendered in your favortie web browser.
Which versions of PhpSpreadsheet and PHP are affected?
Php version 7.3
PhpSpreadsheet version 1.9
The text was updated successfully, but these errors were encountered: