Show More
@@ -95,7 +95,10 b' def printrevision(rev):' | |||
|
95 | 95 | def idxwidth(nbidx): |
|
96 | 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 | 102 | nbidx -= 1 # starts at 0 |
|
100 | 103 | idxwidth = 0 |
|
101 | 104 | while nbidx: |
General Comments 0
You need to be logged in to leave comments.
Login now