-
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
Ods writer: add support for basic text styling #105
Comments
Thanks, looking forward to it. For unit tests, it would be great to limit the use of binary files in the repository, either by not using any at all or re-using the existing one. But I guess you won't need any of them to test writing things. |
I shouldn't need any binary file, but since some methods return XML strings I'm wondering which is the preferred method to test XML output. XML it's not binary per se, but it can increase the weight on the repository in the long term. On the other hand, XML is still plain text and it's easy to merge if that was your point. I can see two solutions for these kinds of tests where the XML output needs to be tested:
Both solutions have pros and cons. Most notably, the second approach could result in more verbose unit tests (lots of assertions or data inside the tests). My choice between the two would be the first approach because is can be more precise and, of course, the tests are faster to write. I looked in the test suite for tests which used one solution or the other but I couldn't find any. What do you think should be the preferred solution? I guess this can become a guideline for future tests too. |
I am OK with the first solution. Hopefully it does not becomes too huge too soon, but like you said it seems to be the easiest way for now. |
Ods writer: add support for basic text styling (Fix #105)
The Ods writer doesn't support font styles like color, size, bold, italic, single underline, cell background.
Of course, this is a feature rather than a bug, but since I already implemented this on PHPExcel (see PR pending for PHPExcel PHPOffice/PHPExcel#785) I thought maybe I could port the PR here.
Also, since PhpSpreadsheet now has a working testing/CI environment, I'm writing a few unit tests for the Ods writer too.
I will reference the PR to this issue when it's ready
The text was updated successfully, but these errors were encountered: