Skip to content

Commit

Permalink
Fix a bug where an unbound desc. slot in an image instance would prod…
Browse files Browse the repository at this point in the history
…uce alt='NIL'
  • Loading branch information
eudoxia0 committed Apr 29, 2015
1 parent 107488f commit 612d0ad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/emitter.lisp
Expand Up @@ -140,9 +140,10 @@
(concatenate 'string *image-base-url* source)
source))))
(with-tag ("img" image
:attributes (list src
(cons "alt" (description image))
(cons "title" (description image)))
:attributes (append (list src)
(aif (description image)
(list (cons "alt" it)
(cons "title" it))))
:self-closing-p t)))))

(define-emitter (fig figure)
Expand Down

0 comments on commit 612d0ad

Please sign in to comment.