[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45628] generate_package_html doesn't copy svg
From: |
Oliver Heimlich |
Subject: |
[Octave-bug-tracker] [bug #45628] generate_package_html doesn't copy svg images |
Date: |
Sat, 25 Jul 2015 17:43:30 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0 |
URL:
<http://savannah.gnu.org/bugs/?45628>
Summary: generate_package_html doesn't copy svg images
Project: GNU Octave
Submitted by: oheim
Submitted on: Sa 25 Jul 2015 19:43:29 CEST
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Feature Request
Status: None
Assigned to: None
Originator Name: Oliver Heimlich
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: other
Operating System: Any
_______________________________________________________
Details:
During generage_package_html image files are collected and copied into the
output folder. However, svg images are not copied. I want to use svg images
in the HTML version of the package manual and the following patch solves the
issue:
diff -r bcd1979b0601 inst/generate_package_html.m
--- a/inst/generate_package_html.m Wed Jul 15 23:13:15 2015 +0200
+++ b/inst/generate_package_html.m Sat Jul 25 19:36:19 2015 +0200
@@ -602,7 +602,7 @@
error ("Couldn't open %s for reading", file);
endif
while (! isnumeric (l = fgetl (fid)))
- m = regexp (l, "<img.+src=""([^""]+)"".*>", "tokens");
+ m = regexp (l, "<(?:img.+src|object.+data)=""([^""]+)"".*>", "tokens");
if (! isempty (m))
url = m{1}{1};
## exclude external links
For testing purpose you can use the following HTML snippet:
<object data="image/example.svg" type="image/svg+xml">
<param name="src" value="image/example.svg" />
<!-- If the browser can't render svg, use the
rasterized version instead -->
<img src="image/example.png" />
</object>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45628>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #45628] generate_package_html doesn't copy svg images,
Oliver Heimlich <=