summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-05-08 01:14:51 +0000
committergoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-05-08 01:14:51 +0000
commit7409bfd4b4f06f6d5e1aae4a315aaa52f418f0f4 (patch)
tree5ec93ad3716177790108ca5185566600685b4c7a
parent45fbe5ab98f794ac688a19e8470aab95cba9e280 (diff)
downloaddocutils-7409bfd4b4f06f6d5e1aae4a315aaa52f418f0f4.tar.gz
The "handout" directive cannot use "section" as a base node; "block_quote" works though. Also, 3rd spec entry must be a tuple.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3320 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rw-r--r--sandbox/cliechti/slideshow/s5.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sandbox/cliechti/slideshow/s5.py b/sandbox/cliechti/slideshow/s5.py
index ae132d213..1b80accf5 100644
--- a/sandbox/cliechti/slideshow/s5.py
+++ b/sandbox/cliechti/slideshow/s5.py
@@ -24,7 +24,7 @@ class Writer(html4css1.Writer):
None,
(('Specify an S5 theme directory. The default is "ui".',
['--theme'],
- {'default': 'ui', 'metavar': '<file>'})))
+ {'default': 'ui', 'metavar': '<path>'}),))
config_section = 's5 writer'
config_section_dependencies = ('writers', 'html4css1 writer')
@@ -120,7 +120,7 @@ def handout_directive(name, arguments, options, content, lineno,
'The handout block is empty; content required.',
nodes.literal_block(block_text, block_text), line=lineno)
return [warning]
- node = nodes.section(text)
+ node = nodes.block_quote(text)
node['classes'] += options.get('class', [])
node['classes'].append('handout')
state.nested_parse(content, content_offset, node)