turn off Scribble e-mail address obfuscation

svn: r15989
This commit is contained in:
Matthew Flatt 2009-09-13 01:12:55 +00:00
parent 495068b180
commit c28ed519a0
2 changed files with 13 additions and 7 deletions

View File

@ -134,14 +134,16 @@
(make-element #f (list "," nl)))
(list "," nl "and " (car r))))]))))
(define (author+email name email)
(define (author+email name email #:obfuscate? [obfuscate? #f])
(make-element #f
(list
name
" <"
(regexp-replace* #rx"[.]"
(regexp-replace* #rx"@" email " at ")
" dot ")
(if obfuscate?
(regexp-replace* #rx"[.]"
(regexp-replace* #rx"@" email " at ")
" dot ")
email)
">")))
;; ----------------------------------------

View File

@ -123,10 +123,14 @@ show the author(s) of a document, where each author is represented by
@scheme[title] for the beginning of a document. See also
@scheme[author+email].}
@defproc[(author+email [author elem] [email string?]) element?]{
@defproc[(author+email [author elem]
[email string?]
[#:obfuscate? obfuscate? any/c #f])
element?]{
Combines an author name with an e-mail address, obscuring the e-mail
address slightly to avoid address-harvesting robots.}
Combines an author name with an e-mail address. If @scheme[obfuscate?]
is true, then the result obscures the e-mail address slightly to avoid
address-harvesting robots.}
@; ------------------------------------------------------------------------