8000 Backport PR #17667: Don't linewrap css in svg header. · matplotlib/matplotlib@4611bff · GitHub
[go: up one dir, main page]

Skip to content

Commit 4611bff

Browse files
timhoffmmeeseeksmachine
authored andcommitted
Backport PR #17667: Don't linewrap css in svg header.
1 parent a8831d5 commit 4611bff

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/matplotlib/backends/backend_svg.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,7 @@ def _write_default_style(self):
430430
'stroke-linejoin': 'round',
431431
'stroke-linecap': 'butt'})
432432
writer.start('defs')
433-
writer.start('style', type='text/css')
434-
writer.data('*{%s}\n' % default_style)
435-
writer.end('style')
433+
writer.element('style', type='text/css', text='*{%s}' % default_style)
436434
writer.end('defs')
437435

438436
def _make_id(self, type, content):

0 commit comments

Comments
 (0)
0