Skip to content

insertion of spurious linebreak before P end tag if paragraph contains only an anchor #742

Open
@phloxic

Description

@phloxic
$ echo '<p>test <a href="/example/">expected</a></p>' | tidy -config /dev/null 2>/dev/null
<!DOCTYPE html>
<html>
<head>
  <title>
  </title>
</head>
<body>
  <p>test <a href="/example/">expected</a></p>
</body>
</html>
$ echo '<p><a href="/example/">unexpected</a></p>' | tidy -config /dev/null 2>/dev/null
<!DOCTYPE html>
<html>
<head>
  <title>
  </title>
</head>
<body>
  <p><a href="/example/">unexpected</a>
  </p>
</body>
</html>
~$ tidy -version
HTML Tidy for Apple macOS version 5.6.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions