diff options
author | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2008-06-22 08:25:19 +0000 |
---|---|---|
committer | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2008-06-22 08:25:19 +0000 |
commit | b586fca96984d7d660b5f55f1d498481d8451305 (patch) | |
tree | 0102d40a65b8e1a86191b3efc67bc3019a4689cd | |
parent | 819c21ed8a27016f632d140353d8a570c633ea25 (diff) | |
download | docutils-b586fca96984d7d660b5f55f1d498481d8451305.tar.gz |
Fix: documentation to literal-block-env and use-verbatim-when-possible
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils/docutils@5572 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rw-r--r-- | writers/latex2e/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/writers/latex2e/__init__.py b/writers/latex2e/__init__.py index cb8f42d5b..c5785f03d 100644 --- a/writers/latex2e/__init__.py +++ b/writers/latex2e/__init__.py @@ -117,11 +117,11 @@ class Writer(writers.Writer): ['--section-enumerator-separator'], {'default': '-', 'metavar': '<char>'}), ('When possibile, use the specified environment for literal-blocks. ' - 'Default is to always use the mbox environment.', + 'Default is quoting of whitespace and special chars.', ['--literal-block-env'], {'default': '', }), ('When possibile, use verbatim for literal-blocks. ' - 'Default is to always use the mbox environment.', + 'Compatibility alias for "--literal-env=verbatim".', ['--use-verbatim-when-possible'], {'default': 0, 'action': 'store_true', 'validator': frontend.validate_boolean}), @@ -952,6 +952,7 @@ class LaTeXTranslator(nodes.NodeVisitor): # ! LaTeX Error: There's no line here to end. text = text.replace("\n", '~\\\\\n') elif self.mbox_newline: + # TODO dead code: remove after 0.5 release if self.literal_block: closings = "}" * len(self.literal_block_stack) openings = "".join(self.literal_block_stack) |