Skip to content

Commit fb0548f

Browse files
authored
Update build/generate-svg.js
1 parent d2489dc commit fb0548f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/generate-svg.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ async function processFile(file, {prefix, fullName} = {}) {
2525
if (prefix === 'octicon') name = name.replace(/-[0-9]+$/, ''); // chop of '-16' on octicons
2626
}
2727

28-
// keep the xmlns attribute to make the files could be displayed by local browsers/image-viewers
28+
// keep the `xmlns` attribute so that the files are displayble in standalone documents
29+
// The svg backend module will strip the attribute during startup for inline display
2930
const {data} = optimize(await readFile(file, 'utf8'), {
3031
plugins: [
3132
{name: 'preset-default'},

0 commit comments

Comments
 (0)