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

Fixes Reader for image styles, tabs and line breaks #2128

Closed
wants to merge 0 commits into from

Conversation

abf-jricha
Copy link

@abf-jricha abf-jricha commented Aug 2, 2021

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.

Fixes #2127
While loading an existing Word document and save it back, the new document loses the information about the image styles, tabs and line breaks.

Checklist:

  • [ X ] I have run composer run-script check --timeout=0 and no errors were reported
  • [ X ] The new code is covered by unit tests (check build/coverage for coverage report)
  • [ X ] I have updated the documentation to describe the changes


// Anchor wrapping style square
if ($xmlReader->elementExists('wp:anchor/wp:wrapSquare', $domNode)) {
$styles['wrappingStyle'] = ImageStyle::WRAPPING_STYLE_SQUARE;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While testing I've found a problem with the wrapping style. As you see in sample 11. Wrapping styles are not recognized by addImage with styles.

@cwbsl
Copy link

cwbsl commented Oct 14, 2021

Any update on this issue? We still experience those things not working properly. Thanks for your work on it!

@abf-jricha
Copy link
Author

No one reviewed the PR. We are still using the forked version in our application and it works fine.

@cwbsl
Copy link

cwbsl commented Oct 15, 2021

Awesome! Thanks a lot! Hopefully somebody soon reviews the PR...

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.

Reader - Add Support for Image Styles, tabs and line breaks
2 participants