--- chm2pdf 2011-11-20 17:46:26.000000000 +0100 +++ chm2pdf_images_case_insensitive 2011-11-20 20:03:20.000000000 +0100 @@ -153,8 +153,9 @@ if ';' in img_filename: #hack to get rid of mysterious ; in filenames and urls... img_filename=img_filename.split(';')[0] # substitute the new image filenames - but only if an img_filename was found! + # added (?i) modifier to make a case insensitive match for not breaking working links to images in windows in CHM files if img_filename: - page=re.sub(iurl,img_filename,page) + page=re.sub('(?i)"'+iurl,'"'+img_filename,page) # We substitute the CSS URLs of input_file with the *actual* URLs on the CHM2PDF_ORIG_DIR directory