From 7409bfd4b4f06f6d5e1aae4a315aaa52f418f0f4 Mon Sep 17 00:00:00 2001 From: goodger Date: Sun, 8 May 2005 01:14:51 +0000 Subject: 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 --- sandbox/cliechti/slideshow/s5.py | 4 ++-- 1 file 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': ''}))) + {'default': 'ui', 'metavar': ''}),)) 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) -- cgit v1.2.1