Browse Source

Fixed #354

pull/388/head
smalawi 8 years ago
parent
commit
3241139885
  1. 2
      pygal/util.py

2
pygal/util.py

@ -228,7 +228,7 @@ def decorate(svg, node, metadata):
if 'style' in metadata: if 'style' in metadata:
node.attrib['style'] = metadata.pop('style') node.attrib['style'] = metadata.pop('style')
if 'label' in metadata: if 'label' in metadata and metadata['label']:
svg.node(node, 'desc', class_='label').text = to_unicode( svg.node(node, 'desc', class_='label').text = to_unicode(
metadata['label']) metadata['label'])
return node return node

Loading…
Cancel
Save