]> xmof Git - DeDRM.git/commitdiff
erdr2pml 0.12
authorsome_updates <some_updates@gmail.com>
Wed, 6 Jan 2010 10:35:15 +0000 (10:35 +0000)
committerApprentice Alf <apprenticealf@gmail.com>
Sat, 28 Feb 2015 10:35:39 +0000 (10:35 +0000)
eReader_Tools/lib/erdr2pml.py

index ee061ba57766627f5bdff89bc516720043f6583d..6bae3f55d5d7f61b430db7387b09cc4f1bf3e35c 100644 (file)
@@ -50,8 +50,9 @@
 #  0.09 - fixed typos in first_pages to first_page to again support older formats
 #  0.10 - minor cleanups
 #  0.11 - fixups for using correct xml for footnotes and sidebars for use with Dropbook
+#  0.12 - fixup for file name cleaning - no longer converts to lower case
 
-__version__='0.11'
+__version__='0.12'
 
 # Import Psyco if available
 try:
@@ -324,8 +325,8 @@ class Sectionizer(object):
 
 def sanitizeFileName(s):
     r = ''
-    for c in s.lower():
-        if c in "abcdefghijklmnopqrstuvwxyz0123456789_.-":
+    for c in s:
+        if c in "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.-":
             r += c
     return r