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

styleid also for other Elements #2360

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

besenwesen27
Copy link

@besenwesen27 besenwesen27 commented Dec 29, 2022

Description

All other types like paragraphs and characters should also receive a styleid. We will set this like the stylename. Otherwise it could be misleading for some converters or readers, which work with the styleid, like for example GemBox. Microsoft Word itself does also set IDs for all other elements like characters.

We had issues when setting fonts via $phpword->addFontStyle() which lead to not producing a styleid in the word\styles.xml and GemBox showed all content of the document in the same default font style.

Checklist:

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

all other types like paragraphs and characters should also receive a styleid. We will set this like the stylename.
Otherwise it could be misleading for some converters or readers, which work with the styleid, like for example GemBox. Microsoft Word itself does also set IDs for all other elements like characters.

We had issues when setting fonts via $phpword->addFontStyle() which lead to not producing a styleid in the word\styles.xml and GemBox showed all content of the document in the same default font style.
@Progi1984 Progi1984 force-pushed the master branch 3 times, most recently from 2d9f999 to e458249 Compare August 30, 2023 11:56
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.

None yet

1 participant