Hey all. One pet peeve of mine is people who post very long URLs in
comments, which often increases the width of the page.
Not knowing a better way to address this, I added the following to the
function _auto_linkify_urls in Utility.pm:
# Truncate long URLs at 70 characters
s#>((?:http|ftp|file)://.{70}).+</a>#>$1...</a>#g;
1) does anyone see a problem with this?
2) why does it seem to apply to new comments and not existing comments? Are
they being cached/archived?
Chris
--------------------------
Chris Schults
Web Production Manager
Grist Magazine
710 Second Avenue, Suite 860
Seattle, WA 98104
Phone: 206-876-2020, ext. 204
Fax: 253-423-6487
<http://www.grist.org>
To sign up for Grist by email, the world's top environmental news served up
with a sense of humor, click here <http://www.grist.org/signup/> or send a
blank email message to <daily-grist-subscribe at lists.grist.org>