File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 3
3
RFC_XML=" ${1} "
4
4
xmlstarlet select --template --match " //artwork[@type='svg'][substring(@src,string-length(@src)-3)='.svg']" --value-of @src --nl " ${RFC_XML} " | while read ARTWORK_SVG ; do
5
5
ENCODED_SVG=" $( echo $( cat " $ARTWORK_SVG " ) | sed ' s/ /%20/g;s/"/%22/g;s/#/%23/g;s/(/%28/g;s/)/%29/g;s/,/%2C/g;s/:/%3A/g;s/</%3C/g;s/=/%3D/g;s/>/%3E/g;s/?/%3F/g' ) "
6
- ASCII_ART_FALLBACK=" $( sed -n " /^SVGC:${ARTWORK_SVG} /,/^$/p" " $( dirname " ${0} " ) /ffv1.md" | grep " ^AART:" | cut -d " :" -f2) "
6
+ ASCII_ART_FALLBACK=" $( sed -n " /^SVGC:${ARTWORK_SVG} /,/^$/p" " $( dirname " ${0} " ) /ffv1.md" | grep " ^AART:" | cut -d " :" -f2- ) "
7
7
if [[ -n " ${ASCII_ART_FALLBACK} " ]] ; then
8
8
# find an <artwork> node for the SVG data and insert an <artset> node after it
9
9
xmlstarlet edit --inplace --append " //artwork[@src='${ARTWORK_SVG} ']" --type elem -n artset " ${RFC_XML} "
You can’t perform that action at this time.
0 commit comments