From fac9b94f1b7f894ce65492ff8320f394be2c723b Mon Sep 17 00:00:00 2001 From: Robin Stuart Date: Sun, 3 Nov 2019 11:51:12 +0000 Subject: [PATCH] Further refinement to SVG More research revealed frasl entity should not be implemented, but apos should Thanks to Ian Jeffray --- backend/svg.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/svg.c b/backend/svg.c index 28e8da6a..ccdf7791 100644 --- a/backend/svg.c +++ b/backend/svg.c @@ -71,9 +71,9 @@ void make_html_friendly(unsigned char * string, char * html_version) { html_pos += 6; break; - case '/': - strcat(html_version, "⁄"); - html_pos += 7; + case '\'': + strcat(html_version, "'"); + html_pos += 6; break; default: @@ -105,8 +105,8 @@ int svg_plot(struct zint_symbol *symbol) { case '<': case '"': case '&': - case '/': - html_len += 7; + case '\'': + html_len += 6; break; } }