fix_clip_path: Remove 'clip-path' element from SVG files

Description Usage Arguments Details Value

Description

Some version of Firefox don't display correctly SVG files that have a clip-path element set. This function detects and removes this element from any SVG files included within any subfolders given as a path.

Usage

1

Arguments

path

the path of a folder of a project that may contain SVG files.

Details

The diff between the files affected by this script and the original might be significantly different, as the entire content of the file is parsed and rewritten (using the xml2 package). This has the side effect of potentially affecting the order of the elements of the file leading to large diffs.

Value

A character vector of the absolute paths of the affected SVG files.


fmichonneau/fixsvg documentation built on May 16, 2019, 2:30 a.m.