Uh oh!
There was an error while loading. Please reload this page.
Pad them digits - #91
Conversation
Calculates the base 10 log of the page count and pads the filenames' page numbers appropriately.
knowtheory
commented
Aug 23, 2013
oop. need that to be optional. DocumentCloud's viewer for instance depends on a particular output format... which happens to coincide w/ how Docsplit spits out pages (w/o padding). |
dannguyen
commented
Aug 23, 2013
But this is a critical issue for users with OCD. I'm all for backwards-compatibility, but the DC viewer seems like an edge case. |
jashkenas
commented
Aug 23, 2013
Padding is nasty. Better to hack your filesystem to properly sort numbers in natural order, no? ;) |
dannguyen
commented
Aug 23, 2013
Actually, when I was about to take a screenshot to submit with my pull request, I noticed that that OSX Mountain Lion does sort non-padded numbered files in numerical order, though I had already written the pull request and needed to submit something in order to keep my Github commit-streak alive. But think of the Windows users. |
jashkenas
commented
Aug 24, 2013
The Windows users appear to be covered: http://support.microsoft.com/kb/319827 |
Calculates the base 10 log of the page count and pads the filenames' page numbers appropriately.