Skip to content

Do not insert newlines into TEXT when wrapping! #625

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
jidanni opened this issue Oct 4, 2017 · 3 comments
Closed

Do not insert newlines into TEXT when wrapping! #625

jidanni opened this issue Oct 4, 2017 · 3 comments

Comments

@jidanni
Copy link
Contributor

jidanni commented Oct 4, 2017

Big problem. tidy turns

<td><a href="http://web.archive.org/web/20161031080822/http://www.panoramio.com/photo/127413989">分水嶺</a>遠眺<a href=
"http://web.archive.org/web/20161102002831/http://www.panoramio.com/photo/127414009">烏溪流域</a></td>

into

<td><a href=
"http://web.archive.org/web/20161031080822/http://www.panoramio.com/photo/127413989">
分水嶺</a>遠眺<a href=
"http://web.archive.org/web/20161102002831/http://www.panoramio.com/photo/127414009">烏溪流域</a></td>

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.

Version:

$ apt-cache policy tidy
tidy:
  Installed: 1:5.2.0-2
  Candidate: 1:5.2.0-2
  Version table:
 *** 1:5.2.0-2 500
        500 http://free.nchc.org.tw/debian unstable/main i386 Packages
        100 /var/lib/dpkg/status
@balthisar
Copy link
Member

@jidanni, just following up to acknowledge the problem.

@KingDuckZ
Copy link
Contributor

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

@geoffmcl
Copy link
Contributor

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
Projects
None yet
Development

No branches or pull requests

4 participants