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

Do not insert newlines into TEXT when wrapping! #625

jidanni opened this issue Oct 4, 2017 · 3 comments

Do not insert newlines into TEXT when wrapping! #625

jidanni opened this issue Oct 4, 2017 · 3 comments


Copy link

jidanni commented Oct 4, 2017

Big problem. tidy turns

<td><a href="">分水嶺</a>遠眺<a href=


<td><a href=
分水嶺</a>遠眺<a href=

I.e., inserting a newline into TEXT, which will cause an ugly space
inserted upon rendering.

Please put the line break within the <a ... >. If there is no <...> then
don't break. Don't force the user to use -w 0.

By the way, there is no way to repair the damage once done, other than manually.


$ apt-cache policy tidy
  Installed: 1:5.2.0-2
  Candidate: 1:5.2.0-2
  Version table:
 *** 1:5.2.0-2 500
        500 unstable/main i386 Packages
        100 /var/lib/dpkg/status
Copy link

@jidanni, just following up to acknowledge the problem.

Copy link

This is an issue for me too! is there an ETA at all? or any possible workaround?

Copy link

geoffmcl commented Apr 9, 2021

20210409: years later...

@jidanni, in a review of this inserted newline, due to wrap, between href= and "http:..., can not find a problem...

In the chrome, explorer, and firefox browsers, the rendering of the tidy wrapped output, remains a single line rendering... as it should...

AFAICT, libTidy carefully chooses wrap points, that will not effect the browser rendering...

So, @KingDuckZ, there is no ETA on this... no issue identified...

Closing this... until a tidy problem identified... thanks...

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

No branches or pull requests

4 participants