[go: nahoru, domu]

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

Update Html parser to accept line-height:normal #2041

Merged
merged 4 commits into from
Apr 15, 2021

Conversation

joelgo
Copy link
Contributor
@joelgo joelgo commented Mar 17, 2021

For acept text in line-height how "line-height:normal", etc.

Description

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

Fixes # (issue)

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

For acept text in line-height how "line-height:normal", etc.
Copy link
Contributor
@troosan troosan left a comment

Choose a reason for hiding this comment

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

please fix issues

if (preg_match('/([0-9]+\.?[0-9]*[a-z]+)/', $cValue, $matches)) {
if (preg_match('/([a-z]+)/', $cValue, $matches)) {
//$cvalue text and not number
if($cValue == 'normal') {
Copy link
Contributor

Choose a reason for hiding this comment

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

what else than 'normal' can it be? And why 1.12 for one and 1.13 for the other?

@troosan troosan changed the title Update html.php Update Html parser to accept line-height:normal Apr 13, 2021
@troosan troosan added the Status: Waiting for feedback Question has been asked, waiting for response from PR author label Apr 13, 2021
@troosan troosan added this to the v0.18.2 milestone Apr 15, 2021
@troosan troosan added HTML and removed Status: Waiting for feedback Question has been asked, waiting for response from PR author labels Apr 15, 2021
@troosan troosan merged commit fa52c92 into PHPOffice:develop Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants