Commit defa89d
committed
Fix duplicate file name extension
If a filename extension and a format are specified with the same string,
we create a file with a double file extension. Ie:
```javascript
py.image.save_as(figure, 'filename2.png', 'png')
```
This will produce a file named filename2.png.png. When ext and format
are both present, the fix will only append format to the filename if the
format is different from ext. Ie:
```javascript
py.image.save_as(figure, 'filename2.png', 'pdf')
```
This will create filename2.png.pdf.1 parent 5586407 commit defa89d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | | - | |
| 663 | + | |
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
| |||
0 commit comments