Commit e1744b4
committed
FIX: Gracefully handle empty files for imgmath depth extraction
Closes sphinx-doc#14466.
While empty files are likely an error `read_svg_depth()` is not the place to flag empty files. It is designed to handle files without depth comment, and that should also be true for the edge case of an empty file.1 parent cc7c6f4 commit e1744b4
1 file changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
71 | 74 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
77 | 79 | | |
78 | | - | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| |||
0 commit comments