Skip to content

Can't disable wrap #858

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

Closed
ghost opened this issue Feb 5, 2020 · 2 comments
Closed

Can't disable wrap #858

ghost opened this issue Feb 5, 2020 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Feb 5, 2020

Hello,

I am using Tidy under Fedora, to format HTML under PHP. Package versions are:
libtidy-5.6.0-5.fc30.x86_64
php-tidy-7.3.14-1.fc30.x86_64

Based on the documentation I've set wrap to zero. Unfortunately, wrap is still in effect, for example:

source:

<p>this is a <b>tessst</b> <u>content</u></p>

output:

<p>
this
is
a
<b>
tessst</b>
<u>
content</u></p>

If I set wrap to some high number like 1000, then the output appears correct.

Thank you.

@geoffmcl
Copy link
Contributor

@robo2bobo thank you for your issue... exposing a bug in 5.6.0 tidy...

But it has already been noted, and fixed in a version later than 5.6.0, in fact, from tidy 5.7.9 onwards...

See issues #780, PR #705, #704, #673, and maybe others...

The only work-around, for version 5.6, is to use a large number...

Where a uint is 32-bits, any value up to 2147483647... so 1000 is fine... ;=))

Or upgrade, update, your php-tidy/libtidy installation... if possible ...

Am closing this, as a bug fixed... but please feel free to re-open, or open a new issue... thanks....

HTH...

@geoffmcl geoffmcl added the Bug label Feb 10, 2020
@ghost
Copy link
Author

ghost commented Feb 10, 2020

Sorry I missed the closed issues.

I believe its time to request updated packages from the Fedora maintainer :)

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

No branches or pull requests

1 participant