Skip to content

Commit d30ce9c

Browse files
committed
Detect all XML files as SVG
As SVG files can start with the XML declaration, interpret all XML files as SVG for now.
1 parent 78767ef commit d30ce9c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/docx/image/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@
2222
(Tiff, 0, b"II*\x00"), # little-endian (Intel) TIFF
2323
(Bmp, 0, b"BM"),
2424
(Svg, 0, b"<svg "),
25+
(Svg, 0, b"<?xml version="),
2526
)

0 commit comments

Comments
 (0)