gooderp18绿色标准版
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

29 行
825B

  1. #!C:\odoobuild\WinPy64\python-3.12.3.amd64\python.exe
  2. # $Id: rst2odt.py 9115 2022-07-28 17:06:24Z milde $
  3. # Author: Dave Kuhlman <dkuhlman@rexx.com>
  4. # Copyright: This module has been placed in the public domain.
  5. """
  6. A front end to the Docutils Publisher, producing OpenOffice documents.
  7. """
  8. try:
  9. import locale
  10. locale.setlocale(locale.LC_ALL, '')
  11. except Exception:
  12. pass
  13. from docutils.core import publish_cmdline_to_binary, default_description
  14. from docutils.writers.odf_odt import Writer, Reader
  15. description = ('Generates OpenDocument/OpenOffice/ODF documents from '
  16. 'standalone reStructuredText sources. ' + default_description)
  17. writer = Writer()
  18. reader = Reader()
  19. output = publish_cmdline_to_binary(reader=reader, writer=writer,
  20. description=description)
上海开阖软件有限公司 沪ICP备12045867号-1