10000 Merge pull request #14403 from anntzer/unsvg · dstansby/matplotlib@65ba07d · GitHub
[go: up one dir, main page]

Skip to content

Commit 65ba07d

Browse files
committed
Merge pull request matplotlib#14403 from anntzer/unsvg
Revert "Preserve whitespace in svg output."
1 parent eb5fc6b commit 65ba07d

File tree

3 files changed

+1
-34
lines changed

3 files changed

+1
-34
lines changed

lib/matplotlib/backends/backend_svg.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,7 @@ def _write_default_style(self):
317317
writer = self.writer
318318
default_style = generate_css({
319319
'stroke-linejoin': 'round',
320-
'stroke-linecap': 'butt',
321-
'white-space': 'pre',
322-
})
320+
'stroke-linecap': 'butt'})
323321
writer.start('defs')
324322
writer.start('style', type='text/css')
325323
writer.data('*{%s}\n' % default_style)

lib/matplotlib/tests/baseline_images/test_backend_svg/white_space_pre.svg

Lines changed: 0 additions & 24 deletions
This file was deleted.

lib/matplotlib/tests/test_backend_svg.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,6 @@ def test_text_urls():
7878
assert expected in buf
7979

8080

81-
@image_comparison(baseline_images=['white_space_pre'], extensions=['svg'])
82-
def test_white_space_pre():
83-
plt.rcParams["svg.fonttype"] = "none"
84-
fig = plt.figure()
85-
fig.text(.5, .5, "a b c")
86-
87-
8881
@image_comparison(baseline_images=['bold_font_output'], extensions=['svg'])
8982
def test_bold_font_output():
9083
fig = plt.figure()

0 commit comments

Comments
 (0)
0