Skip to content

Commit 516b7d9

Browse files
dericedmichaelni
authored andcommitted
fix ascii art with colons
resolves an issue in section 4.1.15 listed at https://mailarchive.ietf.org/arch/msg/cellar/K1girgkVr4AKNDzPcUPyRjla7Rc/ Github: Closes #201
1 parent 647ff8e commit 516b7d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

svg2src

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
RFC_XML="${1}"
44
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
55
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-)"
77
if [[ -n "${ASCII_ART_FALLBACK}" ]] ; then
88
# find an <artwork> node for the SVG data and insert an <artset> node after it
99
xmlstarlet edit --inplace --append "//artwork[@src='${ARTWORK_SVG}']" --type elem -n artset "${RFC_XML}"

0 commit comments

Comments
 (0)