On 2019-12-23 03:21:09 +0100, Vincent Lefevre wrote: > On 2019-12-21 08:09:46 +0000, Daniel Shahaf wrote: > > Vincent Lefevre wrote on Sat, Dec 21, 2019 at 00:09:09 +0100: > > > There's something wrong with "svn list -v" column alignment when > > > there are author names with more than 8 characters. For instance, > > > with the gcc repository: > > > > > > [...] > > > 279442 jozefl Dec 16 12:02 libgcc/ > > > 278886 jvdelisle Dec 01 23:29 libgfortran/ > > > [...] > > > > As implemented, the width is initially 8 but as soon as a longer name is > > seen, > > subsequent lines will be aligned with that, up to a maximum length of 16. > > > > Do you have a better algorithm to propose? > > Make the minimum width configurable, or cache the maximum length name > in the working-copy data.
Or wait for a fraction of second, say 0.1 s, after the first data are available, and compute the width based on these initial data. In most cases (e.g. when -R is not used), these data will actually be complete, so that the output will be correct. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)