Pad them digits#91
Pad them digits#91dannguyen wants to merge 1 commit intodocumentcloud:masterdocumentcloud/docsplit:masterfrom
Conversation
Calculates the base 10 log of the page count and pads the filenames' page numbers appropriately.
|
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). |
|
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. |
|
Padding is nasty. Better to hack your filesystem to properly sort numbers in natural order, no? ;) |
|
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. |
|
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.