summaryrefslogtreecommitdiff
path: root/docutils/readers
diff options
context:
space:
mode:
authorgoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2003-05-29 15:17:58 +0000
committergoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2003-05-29 15:17:58 +0000
commit796fb59a7f9cd5c32326aa70dd8b564576ef982e (patch)
treefacc024f730b2b50d3f66237151ea31f5f6d290e /docutils/readers
parent4b58b2fdd49004676d1785bcf043241d318cc3ba (diff)
downloaddocutils-796fb59a7f9cd5c32326aa70dd8b564576ef982e.tar.gz
revised new --no-doc-title & --no-doc-info options
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1359 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/readers')
-rw-r--r--docutils/readers/standalone.py24
1 files changed, 11 insertions, 13 deletions
diff --git a/docutils/readers/standalone.py b/docutils/readers/standalone.py
index 4e391edb5..14b75e3d7 100644
--- a/docutils/readers/standalone.py
+++ b/docutils/readers/standalone.py
@@ -27,19 +27,17 @@ class Reader(readers.Reader):
settings_spec = (
'Standalone Reader',
- 'The standalone reader defines a list of transforms.',
- (
- ('Disable doctitle transform. By default the transform is enabled.',
- ['--no-doc-title'],
- {'default': 1, 'action': 'store_false' },
- ),
- ('Disable docinfo transform. By default the transform is enabled.',
- ['--no-doc-info'],
- {'default': 1, 'action': 'store_false' },
- ),
- )
- )
-
+ None,
+ (('Disable the promotion of a lone top-level section title to '
+ 'document title (and subsequent section title to document '
+ 'subtitle promotion; enabled by default).',
+ ['--no-doc-title'],
+ {'dest': 'doctitle_xform', 'action': 'store_false', 'default': 1}),
+ ('Disable the bibliographic field list transform (enabled by '
+ 'default).',
+ ['--no-doc-info'],
+ {'dest': 'docinfo_xform', 'action': 'store_false', 'default': 1}),))
+
default_transforms = (references.Substitutions,
frontmatter.DocTitle,
frontmatter.DocInfo,