aboutsummaryrefslogtreecommitdiff
path: root/imagemap.py
diff options
context:
space:
mode:
authorViatrix2026-03-16 21:12:27 -0700
committerViatrix2026-03-16 21:12:27 -0700
commitac04585c5cfa5ccb2584afaf037e5c95ee899a78 (patch)
treec539b7ddb48b1c87799686c6fdb27a48e7be655c /imagemap.py
parent2b39c61ce8838092338c3426c0f63c688a96e6b1 (diff)
Fixed alt text in mod_imagemap
Diffstat (limited to 'imagemap.py')
-rw-r--r--imagemap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/imagemap.py b/imagemap.py
index c7d462d..de93074 100644
--- a/imagemap.py
+++ b/imagemap.py
@@ -38,7 +38,7 @@ SHAPE_MARKUP = {
+"/>\n",
'mod_imagemap': lambda attrs:
f"{attrs['shape']} {attrs['href'] or 'nocontent'} {' '.join(f'{i[0]},{i[1]}' for i in attrs['coords'])}"
- +(' "'+alt.translate({34:"''"})+'"' if alt is not None else '')+'\n' # no way to get quotation mark in text in httpd
+ +(' "'+attrs['alt'].translate({34:"''"})+'"' if attrs['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'