diff options
| author | Mark Wells <mark@freeside.biz> | 2012-09-29 16:36:46 -0700 |
|---|---|---|
| committer | Mark Wells <mark@freeside.biz> | 2012-09-29 16:36:46 -0700 |
| commit | 33beebf4cb42eba3e1dd868ad5e0af102de961da (patch) | |
| tree | 860712543dcc74ff2402a4ed8d73e8cd553e62d4 /rt/share/html/Elements/MakeClicky | |
| parent | 7ac86daf67b0a95153b736d5811f9050363f6553 (diff) | |
update address standardization for cust_location changes
Diffstat (limited to 'rt/share/html/Elements/MakeClicky')
| -rw-r--r-- | rt/share/html/Elements/MakeClicky | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/rt/share/html/Elements/MakeClicky b/rt/share/html/Elements/MakeClicky index 2f2b87990..57964f7a9 100644 --- a/rt/share/html/Elements/MakeClicky +++ b/rt/share/html/Elements/MakeClicky @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC %# <sales@bestpractical.com> %# %# (Except where explicitly superseded by other copyright notices) @@ -61,8 +61,6 @@ my %actions = ( url_overwrite => sub { my %args = @_; my $result = qq{<a target="new" href="$args{'value'}">}; - #XXX: use spaces here. ­ <wbr> are not well supported :( - $args{'value'} =~ s/(\S{30})/$1 /g; $result .= qq{$args{'value'}</a>}; return qq{<span class="clickylink">$result</span>}; }, @@ -71,12 +69,12 @@ my %actions = ( my @types = ( { name => "httpurl", - regex => qr/$RE{URI}{HTTP}{-keep}{-scheme => 'https?'}/, + regex => qr/$RE{URI}{HTTP}{-keep}{-scheme => 'https?'}(?:#\S+)?/, action => "url", }, { name => "httpurl_overwrite", - regex => qr/$RE{URI}{HTTP}{-keep}{-scheme => 'https?'}/, + regex => qr/$RE{URI}{HTTP}{-keep}{-scheme => 'https?'}(?:#\S+)?/, action => "url_overwrite", }, ); @@ -178,9 +176,7 @@ provides two formats: link after the URL. * 'httpurl_overwrite': also detects URLs as 'httpurl' format, but - replace URL with link and *adds spaces* into text if it's longer - then 30 chars. This allow browser to wrap long URLs and avoid - horizontal scrolling. + replace URL with link. To extend this with your own types of data, use the callback. It will be provided with: @@ -202,6 +198,6 @@ It will be provided with: have to. This can be used to add pre- or post-processing around all actions. -Read more about writing new actions in docs/extending_clickable_links.pod +Read more about writing new actions in docs/extending/clickable_links.pod </%doc> |
