summaryrefslogtreecommitdiff
path: root/sphinx/writers/html.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-07-09 11:59:52 +0200
committerGeorg Brandl <georg@python.org>2009-07-09 11:59:52 +0200
commit3656eb7d5c5a397de6a422566606bd8259c5229f (patch)
tree978236288c66273e2cf0e111ae304e7adac8b4fa /sphinx/writers/html.py
parent91d429d533e99f8da3575a74ceaca0b860d51aae (diff)
downloadsphinx-3656eb7d5c5a397de6a422566606bd8259c5229f.tar.gz
Restore docutils compatibility.
Diffstat (limited to 'sphinx/writers/html.py')
-rw-r--r--sphinx/writers/html.py6
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')