", source.read()) + test = re.findall('id="toc"|epub:type=".*?toc.*?"|epub:type=".*?frontmatter.*?"|epub:type=".*?backmatter.*?"|epub:type=".*?appendix.*?"', text) + if test: + continue + source_match = re.search(f"
\2 \2 ', r' ', source_match_fixed)
- fixed_text = re.sub(f"", f"", text)
+ fixed_text = re.sub(f'', fr'', text)
text = re.sub(f"\n\s*