Metadata-Version: 2.1
Name: rfc-tidy
Version: 0.1.2
Summary: Cleanup RFC XML
Home-page: https://github.com/martinthomson/rfc-tidy
Author: Martin Thomson
Author-email: Martin Thomson <mt@lowentropy.net>
License: MIT
Project-URL: Homepage, https://github.com/martinthomson/rfc-tidy
Project-URL: Bug Tracker, https://github.com/martinthomson/rfc-tidy/issues
Keywords: rfc,ietf,xml
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# rfc-tidy

A simple tool that cleans up RFC XML.

## Usage

Install from pypi with:

```sh
pip install --user rfc-tidy
```

Like `black`, `rfc-tidy` cannot be tuned.  Feed XML into `stdin`, get XML
from `stdout` (it also accepts the input file as the first argument).

```sh
rfc-tidy < draft-blah-blah-blah.xml > draft-tidied.xml
```

## Features

Adds `<bcp14>` tags for your "MUST", "SHOULD", and "MAY" statements in text.

Removes extraneous XML, comments, and whitespace.

Indents elements consistently.

Replaces non-ASCII characters in text with XML numeric entities so that you
don't miss them.

Sorts attributes by name.
