Adding error message with undefined reference
svn: r6508 original commit: 597122b8b5c00f1d9f266d7d1c486d3fe63b0849
This commit is contained in:
parent
365cd321fa
commit
c3f8f90b4b
|
@ -157,10 +157,11 @@
|
||||||
,@(if (null? (element-content e))
|
,@(if (null? (element-content e))
|
||||||
(render-content (cadr dest) part ht)
|
(render-content (cadr dest) part ht)
|
||||||
(render-content (element-content e) part ht))))
|
(render-content (element-content e) part ht))))
|
||||||
`((font ((class "badlink"))
|
(begin (fprintf (current-error-port) "Undefined link: ~s~n" (link-element-tag e)) ; XXX Add source info
|
||||||
,@(if (null? (element-content e))
|
`((font ((class "badlink"))
|
||||||
`(,(format "~s" (link-element-tag e)))
|
,@(if (null? (element-content e))
|
||||||
(render-plain-element e part ht)))))))]
|
`(,(format "~s" (link-element-tag e)))
|
||||||
|
(render-plain-element e part ht))))))))]
|
||||||
[else (render-plain-element e part ht)]))
|
[else (render-plain-element e part ht)]))
|
||||||
|
|
||||||
(define/private (render-plain-element e part ht)
|
(define/private (render-plain-element e part ht)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user