Show More
@@ -95,7 +95,10 b' def printrevision(rev):' | |||||
95 | def idxwidth(nbidx): |
|
95 | def idxwidth(nbidx): | |
96 | """return the max width of number used for index |
|
96 | """return the max width of number used for index | |
97 |
|
97 | |||
98 | Yes, this is basically a log10.""" |
|
98 | This is similar to log10(nbidx), but we use custom code here | |
|
99 | because we start with zero and we'd rather not deal with all the | |||
|
100 | extra rounding business that log10 would imply. | |||
|
101 | """ | |||
99 | nbidx -= 1 # starts at 0 |
|
102 | nbidx -= 1 # starts at 0 | |
100 | idxwidth = 0 |
|
103 | idxwidth = 0 | |
101 | while nbidx: |
|
104 | while nbidx: |
General Comments 0
You need to be logged in to leave comments.
Login now