--- chm2pdf 2011-11-20 17:46:26.000000000 +0100 +++ chm2pdf_multiple_page_problem 2011-11-23 23:00:18.000000000 +0100 @@ -62,7 +62,10 @@ if key=='name' and value=='Local': urlparam_flag=True if urlparam_flag and key=='value': - self.pages.append('/'+value) + # self.pages.append('/'+value) + # Avoid duplicates in the list of URLs. + if not self.pages.count('/'+value): + self.pages.append('/'+value) class ImageCatcher(sgmllib.SGMLParser): '''