Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brackets appearing in output from XML tag #108

Open
danielhickman opened this issue Jan 30, 2018 · 1 comment
Open

Brackets appearing in output from XML tag #108

danielhickman opened this issue Jan 30, 2018 · 1 comment

Comments

@danielhickman
Copy link

danielhickman commented Jan 30, 2018

The information between the square brackets on the <DOCTYPE > tag added by Adobe Illustrator when ticking the option "Preserve Illustrator Editing Capabilities" causes ]> to appear in the result but doesn't show in Chrome, Firefox, or Edge. Removing the all of the <!ENTITY> tags between the square brackets fixes the issue.

Code

$ svg2png file.svg --width=192

SVG

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
	<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
	<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
	<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
	<!ENTITY ns_vars "http://ns.adobe.com/Variables/1.0/">
	<!ENTITY ns_imrep "http://ns.adobe.com/ImageReplacement/1.0/">
	<!ENTITY ns_sfw "http://ns.adobe.com/SaveForWeb/1.0/">
	<!ENTITY ns_custom "http://ns.adobe.com/GenericCustomNamespace/1.0/">
	<!ENTITY ns_adobe_xpath "http://ns.adobe.com/XPath/1.0/">
]>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 192 192"
	 style="enable-background:new 0 0 192 192;" xml:space="preserve">
	 <g id="test"></g>
</svg>

Result

test

Device and Versions

  • Windows 10
  • svg2png: v4.1.1
  • Node: v9.4.0
  • PhantomJS v2.1.1
@dolie
Copy link

dolie commented Feb 20, 2018

Same on mac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants