When conversions go wrong, always start with the original source otherwise you are piling garbage on garbage and your fix is being applied to the previous
miss.
The order of doing 'fixes' is important. Only looking at the code gives a clue.
If <br class="calibre9" /> is used in multiples and singly, you need to replace the multiples (<br class="calibre9" /><br class="calibre9" /> scenebreaks) first
And before you do the first S&R, Beautify, so the code is
even