xml2rst.py [-v] xml [reST]
xml2rst.py --help
Converts a docutils XML input file to reStructuredText source.
This can be used to transform another format to reStructuredText given you have a transformation to docutils XML.
Configures title markup to use so different styles can be requested easily.
The value of the parameter must be a string made up of a sequence of
character pairs. The first character of a pair is o (overline) or
u (underline) and the second character is the character to use for
the markup.
The first and the second character pair is used for document title and subtitle, the following pairs are used for section titles where the third pair is used for the top level section title.
Defaults to o=o-u=u-u~u:u.u`.
Configures whether long text lines in paragraphs should be folded and to which length. This option is for input not coming from reST which may have no internal line feeds in plain text strings.
If folding is enabled text strings not in a line feed preserving context are first white-space normalized and then broken according to the folding rules. Folding rules put out the first word and continue to do so with the following words unless the next word would cross the folding boundary. Words are delimited by white-space.
Defaults to 0, i.e. no folding.
Operate verbose.
The XML input file containing docutils XML.
The optional output file containing reStructuredText.
If not given output is put to STDOUT.