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

CommentFileSizeAuthor
#2 svg_image_field-3199379-2.patch1.32 KBtaran2l

Comments

Taran2L created an issue. See original summary.

taran2l’s picture

Status: Active » Needs review
StatusFileSize
new1.32 KB

  • Taran2L authored 3d65659 on 2.0.x
    Issue #3199379 by Taran2L, mandclu: Inline image formatter renders '...
mandclu’s picture

Status: Needs review » Fixed

Thanks 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.