turn off Scribble e-mail address obfuscation
svn: r15989
This commit is contained in:
parent
495068b180
commit
c28ed519a0
|
@ -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)
|
||||
">")))
|
||||
|
||||
;; ----------------------------------------
|
||||
|
|
|
@ -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.}
|
||||
|
||||
@; ------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user