Skip to content
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

support justifyLastLine #4373

Merged
merged 12 commits into from
Feb 23, 2025
Merged

Conversation

YoheiZuho
Copy link
Contributor

@YoheiZuho YoheiZuho commented Feb 18, 2025

This is:

  • a bugfix
  • a new feature
  • refactoring
  • additional unit tests

Checklist:

  • Changes are covered by unit tests
    • Changes are covered by existing unit tests
    • New unit tests have been added
  • Code style is respected
  • Commit message explains why the change is made (see https://github.com/erlang/otp/wiki/Writing-good-commit-messages)
  • CHANGELOG.md contains a short summary of the change and a link to the pull request if applicable
  • Documentation is updated as necessary

Why this change is needed?

justifyLastLine” is a flag used for the ‘Justify Distributed’ option, which is enabled only when the value of ‘Horizontal’ in the EXCEL setting ‘FormatCells’ is ‘Distributed’. When the option is enabled, an indent of a certain width is added before and after the text in the cell.
This option is often used in Japanese-speaking countries.

@oleibman
Copy link
Collaborator

You will need to fix the Phpstan problems and the unit tests that broke as a result of your change. Then you need to make sure that the new property in Alignment is used when calculating the alignment hash code. Then you need to add some tests to demonstrate that your change is working - at a minimum, set the new property in some cell on a spreadsheet (and leave it unset in other cells), write out the spreadsheet, read it back in, and confirm that the property is set or not as desired.

@YoheiZuho
Copy link
Contributor Author

I'd fix the Phpstan problems and the unit tests.

@oleibman
Copy link
Collaborator

Good work on correcting the earlier problems. You still need to include the new field when generating the hash code for Alignment, and to add unit test(s).

@YoheiZuho
Copy link
Contributor Author

You still need to include the new field when generating the hash code for Alignment, and to add unit test(s).

Excuse me, but which file should I add the test to?

@oleibman
Copy link
Collaborator

Despite the number of changes I've requested, you're in pretty good shape. I expect this will be ready to go soon.

@oleibman oleibman added this pull request to the merge queue Feb 23, 2025
Merged via the queue into PHPOffice:master with commit 6d9c0a4 Feb 23, 2025
13 of 14 checks passed
@oleibman
Copy link
Collaborator

Thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants