mind serializer and weblog
[ start | index | login ]
start > source-changed-SnipLink.cutLength

source-changed-SnipLink.cutLength

Created by case. Last edited by case, 3 years and 117 days ago. Viewed 69 times. #1
[edit] [rdf]
labels
attachments

Reason

Currently (1.0b2-uttoxeter) SnipSnap does render SnipLinks in see-also area sometimes unrecognizalbe. This happens due to wrong shortening of the snipname if deep namespaces are used.

Updated org.snipsnap.snip.SnipLink

public static String cutLength(String url, int len) {
    // Using formatter before cutting
    url = formatter.format(url);
    if (url != null && len > 3 && url.length() > len) {
      return url.substring(0, len - 3) + "...";
    }
    return url;
}
no comments | post comment
Quick Links
WhatIsThis about?
Midlets (mobile apps)
TimeLine
Charley a dog's life
MovieReview
Impressum
Project (internal)

Logged in Users: (1)
… and 21 Guests.

< July 2008 >
SunMonTueWedThuFriSat
12345
6789101112
13141516171819
20212223242526
2728293031

Icon-Snip more changes...

Blogs
>>++ vox.machina ++
>>Zitate - Sprüche - Aphorismen
>>Wil Wheaton
>>Mathematische Kleinigkeiten
>>William Gibson
>>instant-thinking
>>Over heard in NY

nearby  sites
link=http://www.mozilla.org/products/firefox/central.html
link=http://www.nutellausa.com/
link=http://snipsnap.org
link=http://www.amazon.de/exec/obidos/registry/wishlist/ref=cs_nav_top_2/028-7651535-0049343
RSS Feed RSS Feed
post to del.icio.us

Stats: 1174 snips by 16 users
created 5 years and 186 days ago

Powered by
>>SnipSnap 1.0b2-uttoxeter
with SnipScale 1.1.0



This work is licensed under a
>>Creative Commons License.

SEARCH