From e95783a838aee52fc73df6c083d3b2f83e47d418 Mon Sep 17 00:00:00 2001 From: milde Date: Tue, 1 Dec 2020 10:53:38 +0000 Subject: [PATCH] Sort/update writer alias names. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8584 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/docutils/writers/__init__.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/docutils/docutils/writers/__init__.py b/docutils/docutils/writers/__init__.py index 90e74f9c3..b8fce7201 100644 --- a/docutils/docutils/writers/__init__.py +++ b/docutils/docutils/writers/__init__.py @@ -121,15 +121,22 @@ class UnfilteredWriter(Writer): _writer_aliases = { 'html': 'html4css1', # may change to html5 some day 'html4': 'html4css1', + 'xhtml10': 'html4css1', 'html5': 'html5_polyglot', + 'xhtml': 'html5_polyglot', + 's5': 's5_html', 'latex': 'latex2e', + 'xelatex': 'xetex', + 'luatex': 'xetex', + 'lualatex': 'xetex', + 'odf': 'odf_odt', + 'odt': 'odf_odt', + 'ooffice': 'odf_odt', + 'openoffice': 'odf_odt', + 'libreoffice': 'odf_odt', 'pprint': 'pseudoxml', 'pformat': 'pseudoxml', 'pdf': 'rlpdf', - 's5': 's5_html', - 'xelatex': 'xetex', - 'xhtml': 'html5_polyglot', - 'xhtml10': 'html4css1', 'xml': 'docutils_xml'} def get_writer_class(writer_name): -- 2.11.4.GIT