aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'