Skip to content

Add an option to preserve existing line breaks. #143

@jyasskin

Description

@jyasskin

I'm maintaining a document formatted approximately like:

<p>
  Here is a sentence.
  Here is another sentence.
  Here is a long sentence with multiple clauses
  that doesn't fit in 100 columns.
</p>

I break lines at sentence boundaries to make the diff easier to read when I edit a sentence and change its length.

I'd like to run tidy-html5 on this document, but any option for wrap throws away the existing newlines and re-wraps the text (or joins it into a single line per element for wrap==0). It'd be nice to have some way to keep the existing line-breaking choices while still using tidy on the rest of the document.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions