Browse Source

My mistake

pull/242/head
Florian Mounier 10 years ago
parent
commit
6c10a875de
  1. 2
      docs/changelog.rst
  2. 2
      pygal/graph/public.py

2
docs/changelog.rst

@ -30,7 +30,7 @@ Changelog
* Fix timezones in DateTimeLine * Fix timezones in DateTimeLine
* Rename in Style foreground_light as foreground_strong * Rename in Style foreground_light as foreground_strong
* Rename in Style foreground_dark as foreground_subtle * Rename in Style foreground_dark as foreground_subtle
* Add a ``render_data_uri`` method * Add a ``render_data_uri`` method (#237)
1.7.0 1.7.0
===== =====

2
pygal/graph/public.py

@ -98,7 +98,7 @@ class PublicApi(BaseGraph):
# Force protocol as data uri have none # Force protocol as data uri have none
kwargs.setdefault('force_uri_protocol', 'https') kwargs.setdefault('force_uri_protocol', 'https')
return "data:image/svg+xml;charset=utf-8;base64,%s" % ( return "data:image/svg+xml;charset=utf-8;base64,%s" % (
base64.urlsafe_b64encode( base64.b64encode(
self.render(**kwargs) self.render(**kwargs)
).decode('utf-8').replace('\n', '') ).decode('utf-8').replace('\n', '')
) )

Loading…
Cancel
Save