From: JazzyNico Date: Tue, 21 Dec 2010 18:43:32 +0000 (+0100) Subject: Indent support for XSLT extensions output. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5a43b2bbcb81ab7da396dad781d3f9b7854eb002;p=inkscape.git Indent support for XSLT extensions output. --- diff --git a/src/extension/implementation/xslt.cpp b/src/extension/implementation/xslt.cpp index c929ba19a..762051339 100644 --- a/src/extension/implementation/xslt.cpp +++ b/src/extension/implementation/xslt.cpp @@ -29,6 +29,7 @@ #include #include +#include Inkscape::XML::Document * sp_repr_do_read (xmlDocPtr doc, const gchar * default_ns); @@ -217,11 +218,16 @@ XSLT::save(Inkscape::Extension::Output */*module*/, SPDocument *doc, gchar const params[0] = NULL; xmlDocPtr newdoc = xsltApplyStylesheet(_stylesheet, svgdoc, params); - xmlSaveFile(filename, newdoc); + //xmlSaveFile(filename, newdoc); + xsltSaveResultToFilename(filename, newdoc, _stylesheet, 0); + xmlFreeDoc(newdoc); xmlFreeDoc(svgdoc); + xsltCleanupGlobals(); + xmlCleanupParser(); + return; }