aafigured SVGs are not rendered by evince, nautilus-thumbnailer, zim and perhaps others
Bug #529409 reported by
Oliver Joos
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
aafigure |
Fix Released
|
Medium
|
Oliver Joos |
Bug Description
The generated SVGs do not work under Ubuntu 9.10 in evince, nautilus-
To fix this I just replace
<svg width="100%" height="100%" version="1.1" ...
with
<svg version="1.1" ...
I don't know if skipping width and height is valid according to SVG standard. The programs I tested may just be flexible enough to allow this. If width and height are mandatory then svg.py may also assign them in px instead of % - this also works for the programs I tested.
Related branches
lp:~oliver-joos/aafigure/olivers
Rejected
for merging
into
lp:aafigure
- zsquareplusc: Disapprove
-
Diff: 96 lines (+31/-11)2 files modifiedaafigure/pil.py (+29/-6)
aafigure/svg.py (+2/-5)
Changed in aafigure: | |
assignee: | nobody → Oliver Joos (oliver-joos) |
Changed in aafigure: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
As I see in the SVG specs[1] it seems like width="100%" and height="100%" are perfectly valid, so I think you should report a bug to the programs that doesn't support it.
That said, aafigure could add some option to use a different width and height specification (like omitting it) to cope with those buggy programs.
[1] http:// www.w3. org/TR/ SVG/struct. html#NewDocumen t