From 4611bff05897f9c5f90dc3c3080d3bfc6c942256 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Thu, 18 Jun 2020 18:45:43 +0200 Subject: [PATCH] Backport PR #17667: Don't linewrap css in svg header. --- lib/matplotlib/backends/backend_svg.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/matplotlib/backends/backend_svg.py b/lib/matplotlib/backends/backend_svg.py index bfba00063629..f8676c6dfd0f 100644 --- a/lib/matplotlib/backends/backend_svg.py +++ b/lib/matplotlib/backends/backend_svg.py @@ -430,9 +430,7 @@ def _write_default_style(self): 'stroke-linejoin': 'round', 'stroke-linecap': 'butt'}) writer.start('defs') - writer.start('style', type='text/css') - writer.data('*{%s}\n' % default_style) - writer.end('style') + writer.element('style', type='text/css', text='*{%s}' % default_style) writer.end('defs') def _make_id(self, type, content):
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: