diff options
| author | Georg Brandl <georg@python.org> | 2009-07-09 11:59:52 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-07-09 11:59:52 +0200 |
| commit | 3656eb7d5c5a397de6a422566606bd8259c5229f (patch) | |
| tree | 978236288c66273e2cf0e111ae304e7adac8b4fa /sphinx/writers/html.py | |
| parent | 91d429d533e99f8da3575a74ceaca0b860d51aae (diff) | |
| download | sphinx-3656eb7d5c5a397de6a422566606bd8259c5229f.tar.gz | |
Restore docutils compatibility.
Diffstat (limited to 'sphinx/writers/html.py')
| -rw-r--r-- | sphinx/writers/html.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/writers/html.py b/sphinx/writers/html.py index 81df395b..76c03c7b 100644 --- a/sphinx/writers/html.py +++ b/sphinx/writers/html.py @@ -303,11 +303,11 @@ class HTMLTranslator(BaseTranslator): if node['uri'].lower().endswith('svg') or \ node['uri'].lower().endswith('svgz'): atts = {'data': node['uri'], 'type': 'image/svg+xml'} - if 'width' in node: + if node.has_key('width'): atts['width'] = node['width'] - if 'height' in node: + if node.has_key('height'): atts['height'] = node['height'] - if 'align' in node: + if node.has_key('align'): self.body.append('<div align="%s" class="align-%s">' % (node['align'], node['align'])) self.context.append('</div>\n') |
