[Compactpath-commit] SF.net SVN: compactpath: [16] trunk/src/compactpath/compactpath.py
Status: Beta
Brought to you by:
jurner
|
From: <ju...@us...> - 2008-06-19 07:28:20
|
Revision: 16
http://compactpath.svn.sourceforge.net/compactpath/?rev=16&view=rev
Author: jurner
Date: 2008-06-19 00:28:17 -0700 (Thu, 19 Jun 2008)
Log Message:
-----------
ups, take the local ellipsis not the global one
Modified Paths:
--------------
trunk/src/compactpath/compactpath.py
Modified: trunk/src/compactpath/compactpath.py
===================================================================
--- trunk/src/compactpath/compactpath.py 2008-06-18 09:56:39 UTC (rev 15)
+++ trunk/src/compactpath/compactpath.py 2008-06-19 07:28:17 UTC (rev 16)
@@ -148,15 +148,15 @@
head, tail = path_module.split(fpath)
n = len(head)
- while n >= len(ELLIPSIS):
+ while n >= len(ellipsis):
head = ltrunc(n, head, ellipsis=ellipsis)
n -= 1
fpath = path_module.join(head, tail)
if measure(fpath) < w:
return fpath
- if head == ELLIPSIS:
- tail = ELLIPSIS + tail
+ if head == ellipsis:
+ tail = ellipsis + tail
n = len(tail) - 1
elif head:
tail = path_module.join(head, tail, ellipsis=ellipsis)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|