Skip to content

Do not insert newlines into TEXT when wrapping! #625

@jidanni

Description

@jidanni

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions