Skip to content

Tidy inserts line breaks around comments just because line is too long #962

Open
@jidanni

Description

@jidanni
<!DOCTYPE html>
<html>
<head>
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width">
 <title>Tidy inserts line breaks around comments just because line is too long</title>
</head>
<body>
<h1>These lines are safe:</h1>


 <p>000000<!--00000000000000000000000000000000000000000000-->.</p>

 <p>00000<!--000000000000000000000000000000000000000000000-->.</p>


<h1>But these lines ...</h1>


 <p>0000000000<!--00000000000000000000000000000000000000000000-->.</p>

 <p>00000<!--000000000000000000000000000000000000000000000000000-->.</p>

 <h1>Will get a line break illegally added by tidy, causing them to
  even render differently. I.e., becoming:</h1>

  <p>0000000000
 <!--00000000000000000000000000000000000000000000-->.</p>

 <p>00000
 <!--000000000000000000000000000000000000000000000000000-->.</p>

<P>HTML Tidy for HTML5 for Linux version 5.6.0

</body>
</html>

example.html.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions