##// END OF EJS Templates
Updated to use the operating system's path delimiter in the displayed path suggestion #11441
Elliott Morgan Jobson -
Show More
@@ -47,7 +47,7 b' def _elide(string, *, min_elide=30):'
47 return '{}.{}\N{HORIZONTAL ELLIPSIS}{}.{}'.format(object_parts[0], object_parts[1][0], object_parts[-2][-1], object_parts[-1])
47 return '{}.{}\N{HORIZONTAL ELLIPSIS}{}.{}'.format(object_parts[0], object_parts[1][0], object_parts[-2][-1], object_parts[-1])
48
48
49 elif len(file_parts) > 3:
49 elif len(file_parts) > 3:
50 return '{}/{}\N{HORIZONTAL ELLIPSIS}{}/{}'.format(file_parts[0], file_parts[1][0], file_parts[-2][-1], file_parts[-1])
50 return ('{}' + os.sep + '{}\N{HORIZONTAL ELLIPSIS}{}' + os.sep + '{}').format(file_parts[0], file_parts[1][0], file_parts[-2][-1], file_parts[-1])
51
51
52 return string
52 return string
53
53
General Comments 0
You need to be logged in to leave comments. Login now