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)))
|
(make-element #f (list "," nl)))
|
||||||
(list "," nl "and " (car r))))]))))
|
(list "," nl "and " (car r))))]))))
|
||||||
|
|
||||||
(define (author+email name email)
|
(define (author+email name email #:obfuscate? [obfuscate? #f])
|
||||||
(make-element #f
|
(make-element #f
|
||||||
(list
|
(list
|
||||||
name
|
name
|
||||||
" <"
|
" <"
|
||||||
(regexp-replace* #rx"[.]"
|
(if obfuscate?
|
||||||
(regexp-replace* #rx"@" email " at ")
|
(regexp-replace* #rx"[.]"
|
||||||
" dot ")
|
(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[title] for the beginning of a document. See also
|
||||||
@scheme[author+email].}
|
@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
|
Combines an author name with an e-mail address. If @scheme[obfuscate?]
|
||||||
address slightly to avoid address-harvesting robots.}
|
is true, then the result obscures the e-mail address slightly to avoid
|
||||||
|
address-harvesting robots.}
|
||||||
|
|
||||||
@; ------------------------------------------------------------------------
|
@; ------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user