Compare commits
10 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
7be79d05e9 | 1 day ago |
|
|
ccaaf4b7fe | 1 day ago |
|
|
073fc48afc | 2 days ago |
|
|
e0de4d3b8e | 2 days ago |
|
|
64a581b2ac | 2 days ago |
|
|
823d1d8b47 | 2 days ago |
|
|
9b46882478 | 2 days ago |
|
|
b105877f4d | 2 days ago |
|
|
fb9efb24ca | 3 days ago |
|
|
9ce6a43329 | 3 days ago |
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 84 KiB |
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 99 KiB |
@ -1,13 +0,0 @@
|
|||||||
|
|
||||||
# Add viewBox attr to SVGs lacking it, so IE scales properly.
|
|
||||||
|
|
||||||
import lxml.etree
|
|
||||||
import glob
|
|
||||||
|
|
||||||
|
|
||||||
for name in glob.glob('images/*.svg') + glob.glob('images/ansible/*.svg'):
|
|
||||||
doc = lxml.etree.parse(open(name))
|
|
||||||
svg = doc.getroot()
|
|
||||||
if 'viewBox' not in svg.attrib:
|
|
||||||
svg.attrib['viewBox'] = '0 0 %(width)s %(height)s' % svg.attrib
|
|
||||||
open(name, 'w').write(lxml.etree.tostring(svg, xml_declaration=True, encoding='UTF-8'))
|
|
||||||
Loading…
Reference in New Issue