Skip to content

Commit

Permalink
Detect all XML files as SVG
Browse files Browse the repository at this point in the history
As SVG files can start with the XML declaration, interpret
all XML files as SVG for now.
  • Loading branch information
takis committed Feb 22, 2024
1 parent 78767ef commit d30ce9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/docx/image/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@
(Tiff, 0, b"II*\x00"), # little-endian (Intel) TIFF
(Bmp, 0, b"BM"),
(Svg, 0, b"<svg "),
(Svg, 0, b"<?xml version="),
)

0 comments on commit d30ce9c

Please sign in to comment.