Skip to content

What is the true purpose and use case of the --bare option? #896

Closed
@JustAGuyCoding

Description

@JustAGuyCoding

What is the true purpose of the --bare option? Tidy help says it's to strip out smart quotes and other em dashes. More information under help-option indicates it's for cleaning up MSWord documents.

These two descriptions of the option don't seem the same:

tidy --help
-bare, -b strip out smart quotes and em dashes, etc.

tidy -help-option bare
This option specifies if Tidy should strip Microsoft specific HTML from Word
2000 documents, and output spaces rather than non-breaking spaces where they
exist in the input.

After briefly reading the documentation at https://api.html-tidy.org/tidy/quickref_5.6.0.html I thought bare could be used to clean up MSWord documents but was surprised when it substituted hyphens for em-dashes.

Side note: There is also a word-2000 option which is for cleaning MSWord documents. This seems tailored for MSWord WebPage exports, opposed to MSWord WebPage filtered exports.

Related issues:
#885

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions