Skip to content

Commit 1a5ba3c

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 6760bea commit 1a5ba3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docx/image/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@
2727
(Tiff, 0, b'MM\x00*'), # big-endian (Motorola) TIFF
2828
(Tiff, 0, b'II*\x00'), # little-endian (Intel) TIFF
2929
(Bmp, 0, b'BM'),
30-
(Svg, 0, b'<svg '),
30+
(Svg, 0, b'<?xml version='),
3131
)

0 commit comments

Comments
 (0)