From a6d891a0ddbcca22ee6aa946e90f7f8d42e1fec5 Mon Sep 17 00:00:00 2001 From: Viatrix Date: Fri, 13 Mar 2026 16:28:05 -0700 Subject: Checked Apache server behaviour; `"` doesn't work for escaping quotes Nor does anything else. Hence the ''. --- imagemap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imagemap.py b/imagemap.py index 00b5f64..a40116f 100644 --- a/imagemap.py +++ b/imagemap.py @@ -33,7 +33,7 @@ SHAPE_MARKUP = { +(f' alt={quotedval(alt)}' if alt is not None else '')+"/>\n", 'mod_imagemap': lambda shape, coords, href, alt: f"{shape} {href if href is not None else 'nocontent'} {' '.join(f'{i[0]},{i[1]}' for i in coords)}" - +(f" \"{alt.translate({34:'"'})}\"" if alt is not None else '')+'\n' + +(' "'+alt.translate({34:"''"})+'"' if alt is not None else '')+'\n' # no way to get quotation mark in text in httpd } # if we ever implement `circ` we gotta handle it specially CSS_LINK_INDEX='-computer-viatrix-inx-imagemap-linkindex' -- cgit