unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Thien-Thi Nguyen <ttn@giblet.glug.org>
Subject: fyi, bugs details now fancifies "http://..."
Date: Tue, 19 Mar 2002 14:23:28 -0800	[thread overview]
Message-ID: <E16nS0u-00005d-00@giblet> (raw)

the bugs details pages (http://www.glug.org/snap/bugs/) now supports
replacing urls w/ hrefs to those urls.  for the curious, appended is new
proc `fancify' in BUGS-2-html-data.scm.

(full google-style decoration is left as an exercise for the reader. :-)

thi


___________________________________
(define (fancify line)
  (let ((rx (make-regexp "http://[-a-zA-Z0-9._/]+")))
    (cond ((regexp-exec rx line)
           => (lambda (m)
                (format #f "~A<A HREF=\"~A\">~A</A>~A"
                        (match:prefix m)
                        (match:substring m) (match:substring m)
                        (fancify (match:suffix m)))))
          (else line))))

_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


                 reply	other threads:[~2002-03-19 22:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E16nS0u-00005d-00@giblet \
    --to=ttn@giblet.glug.org \
    --cc=ttn@glug.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).