Problem/Motivation
When using inline mode for the formatter, the extra <?xml version="1.0"?> is being added before the actual svg code
Browsers are able to recover from that issue, but for example, wkhtmltopdf does not, i.e. PDF is not being generated
Steps to reproduce
Upload any SVG and check the output of the module with inline mode
Proposed resolution
Export contents of the document node only, see https://stackoverflow.com/questions/5706086/php-domdocument-output-witho...
Remaining tasks
Test a patch
User interface changes
None
API changes
None
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | svg_image_field-3199379-2.patch | 1.32 KB | taran2l |
Comments
Comment #2
taran2lComment #4
mandclu commentedThanks for identifying this, and for providing a patch. I tweaked the logic slightly, and merged this in. Hope to have a new release out shortly.