Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2bd61a6

Browse filesBrowse files
authored
Merge pull request #14486 from dstansby/14403-backport
Backport #14403 on v3.1.
2 parents eb5fc6b + 65ba07d commit 2bd61a6
Copy full SHA for 2bd61a6

File tree

Expand file treeCollapse file tree

3 files changed

+1
-34
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+1
-34
lines changed

‎lib/matplotlib/backends/backend_svg.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_svg.py
+1-3Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/baseline_images/test_backend_svg/white_space_pre.svg
-24Lines changed: 0 additions & 24 deletions
This file was deleted.

‎lib/matplotlib/tests/test_backend_svg.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_backend_svg.py
-7Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.