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 f1332e9

Browse filesBrowse files
committed
Revert "Preserve whitespace in svg output."
This reverts commit 5c54324.
1 parent fdc7a8c commit f1332e9
Copy full SHA for f1332e9

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
@@ -77,13 +77,6 @@ def test_text_urls():
7777
assert expected in buf
7878

7979

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.