aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViatrix2026-03-13 16:28:05 -0700
committerViatrix2026-03-13 16:28:05 -0700
commita6d891a0ddbcca22ee6aa946e90f7f8d42e1fec5 (patch)
tree14e82ac9d8812a1032e44f0270888574e462b178
parent4917d1fea4ed29a7030dec5a9304dccd5a76dd23 (diff)
Checked Apache server behaviour; `"` doesn't work for escaping quotes
Nor does anything else. Hence the ''.
-rw-r--r--imagemap.py2
1 files changed, 1 insertions, 1 deletions
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'