chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f7f37d
)
dice: d6: image: Put comment at the end
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 2 May 2022 08:52:56 +0000
(09:52 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 12 May 2022 01:04:48 +0000
(
02:04
+0100)
usvg seems to hate it at the start.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dice/extract-image-only
patch
|
blob
|
history
diff --git
a/dice/extract-image-only
b/dice/extract-image-only
index 5a9ddb9df2d8a864e0d3474f62bbe81f12dfdb93..9a181eb50ff87645e544f003e99babbe65d1c201 100755
(executable)
--- a/
dice/extract-image-only
+++ b/
dice/extract-image-only
@@
-10,8
+10,6
@@
use Data::Dumper;
my $dom = XML::LibXML->load_xml(IO => \*STDIN) or die;
-print "<!--made by dice/extract-image-only-->\n" or die $!;
-
my $nodes = $dom->findnodes('//*[@inkscape:label]');
foreach my $node (@$nodes) {
my $l = $node->getAttribute('inkscape:label');
@@
-21,3
+19,5
@@
foreach my $node (@$nodes) {
}
print $dom->toString or die $!;
+
+print "<!-- made by dice/extract-image-only -->\n" or die $!;