Debian Codegraph @

debian/patches/30_fix_inkscape_options.patch

raw
1 Author: Wolfgang Schweer <[email protected]>
2 Description: Adjust Inkscape options for SVG conversion
3 Inkscape removed the -z option (--without-gui shortcut) and deprecated the
4 --without-gui, --export-png and --export-pdf options (among others).
5 Now, --export-filename and/or --export-type are needed, --without-gui is the
6 default for commandline usage.
7 Bug-Debian: https://bugs.debian.org/1033547
8 --- a/lib/dbtexmf/core/imagedata.py
9 +++ b/lib/dbtexmf/core/imagedata.py
10 @@ -181,7 +181,7 @@ class FigConverter(ImageConverter):
11 class SvgConverter(ImageConverter):
12 def __init__(self, imgsrc, imgdst="", docformat="", backend=""):
13 ImageConverter.__init__(self, imgsrc="svg", imgdst=imgdst)
14 - self.add_command(["inkscape", "-z", "-D", "--export-%(dst)s=%(output)s",
15 + self.add_command(["inkscape", "-D", "--export-filename=%(output)s",
16 "%(input)s"])
17
18