Skip to content

Conversation

@Kdecherf
Copy link
Contributor

@Kdecherf Kdecherf commented Feb 3, 2019

A change released in tidy 5.6.0 breaks php-tidy when using
tidy_parse_string+tidy_clean_repair and wrap=0, incorrectly wrapping
every single word. Also it seems that $tidy->value should not be used to
retrieve the repaired html as far as it is undocumented and for internal
use.

We replace the call with tidy_repair_string which directly returns the
repaired string.

Relates to htacg/tidy-html5#673
Relates to https://bugs.php.net/bug.php?id=75947

Fixes wallabag/wallabag#3872

Tests pass.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.487% when pulling ae059fc on Kdecherf:fix-tidy into bbe9021 on j0k3r:master.

7 similar comments
@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.487% when pulling ae059fc on Kdecherf:fix-tidy into bbe9021 on j0k3r:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.487% when pulling ae059fc on Kdecherf:fix-tidy into bbe9021 on j0k3r:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.487% when pulling ae059fc on Kdecherf:fix-tidy into bbe9021 on j0k3r:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.487% when pulling ae059fc on Kdecherf:fix-tidy into bbe9021 on j0k3r:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.487% when pulling ae059fc on Kdecherf:fix-tidy into bbe9021 on j0k3r:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.487% when pulling ae059fc on Kdecherf:fix-tidy into bbe9021 on j0k3r:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.487% when pulling ae059fc on Kdecherf:fix-tidy into bbe9021 on j0k3r:master.

@coveralls
Copy link

coveralls commented Feb 3, 2019

Pull Request Test Coverage Report for Build 151

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 88.322%

Totals Coverage Status
Change from base Build 150: 0.0%
Covered Lines: 537
Relevant Lines: 608

💛 - Coveralls

…repair

A change released in tidy 5.6.0 breaks php-tidy when using
tidy_parse_string+tidy_clean_repair and wrap=0, incorrectly wrapping
every single word. Also it seems that $tidy->value should not be used to
retrieve the repaired html as far as it is undocumented and for internal
use.

We replace the call with tidy_repair_string which directly returns the
repaired string.

Relates to htacg/tidy-html5#673
Relates to https://bugs.php.net/bug.php?id=75947

Tests pass.

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
@j0k3r j0k3r merged commit 49ce423 into j0k3r:master Feb 4, 2019
@Kdecherf Kdecherf deleted the fix-tidy branch February 4, 2019 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants