don't be so greedy with eliminating clones
This commit is contained in:
parent
47dacf891c
commit
77b72b3118
@ -51,10 +51,10 @@ You can also have a `.cardrc` file which is run before loading the `Cardfile`.
|
||||
|
||||
Process your cards with `svggvs`:
|
||||
|
||||
* `svggvs merged_file`: Create a big SVG file with al cards as layers
|
||||
* `svggvs svgs`: Write out individual SVG files
|
||||
* `svggvs pngs`: Write out PNG files after writing out the SVG files
|
||||
* `svggvs pdf`: Write out the merged PnP PDF file
|
||||
* `svggvs merged_file`: Create a big SVG file with all cards as layers. Fine for simple setups, but will create monster files!
|
||||
* `svggvs svgs`: Write out individual SVG files.
|
||||
* `svggvs pngs`: Write out PNG files after writing out the SVG files.
|
||||
* `svggvs pdf`: Write out the merged PnP PDF file.
|
||||
|
||||
You can also pass in `--cardfile <new file>` to load a different cardfile, say for
|
||||
card backs.
|
||||
|
@ -43,6 +43,7 @@ module SVGGVS
|
||||
end
|
||||
else
|
||||
if label = child['inkscape:label']
|
||||
if !!@replacements[label]
|
||||
if flow_para = child.css('svg|flowPara').first
|
||||
flow_para.content = @replacements[label] || ''
|
||||
end
|
||||
@ -55,6 +56,7 @@ module SVGGVS
|
||||
child['xlink:href'] = ::File.expand_path(@replacements[label])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
replaced(child)
|
||||
end
|
||||
@ -74,12 +76,12 @@ module SVGGVS
|
||||
end
|
||||
|
||||
new_group << source.dup
|
||||
end
|
||||
end
|
||||
|
||||
clone.remove
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user