1
0

rst2xml.py 645 B

1234567891011121314151617181920212223
  1. #!/Users/sasha/Desktop/sharix-open-webapp-base/venv/bin/python3
  2. # $Id: rst2xml.py 8927 2022-01-03 23:50:05Z milde $
  3. # Author: David Goodger <goodger@python.org>
  4. # Copyright: This module has been placed in the public domain.
  5. """
  6. A minimal front end to the Docutils Publisher, producing Docutils XML.
  7. """
  8. try:
  9. import locale
  10. locale.setlocale(locale.LC_ALL, '')
  11. except:
  12. pass
  13. from docutils.core import publish_cmdline, default_description
  14. description = ('Generates Docutils-native XML from standalone '
  15. 'reStructuredText sources. ' + default_description)
  16. publish_cmdline(writer_name='xml', description=description)