Quote:
Originally Posted by magmanpi
Hello,
I've looked in the other threads about fixing line breaks using Sigil but can't find the solution to my problem:
I trying to fix an ebook (a hated Calibre conversion from PDF, I think) in which almost every sentence, though not all -- that contains an em dash is broken after the dash. It looks like this in code view:
blah blah blah —</p>
<p class="calibre2">blah blah blah
In some instances, the code looks like this:
blah blah blah —</span></p>
<p class="calibre2">blah blah blah
I've tried a lot of the regex search strings suggested in other threads but none of them finds any matches, either when I click Find or Count All. Any ideas why the search strings aren't finding any matches?
I would greatly appreciate any help! Thanks!
|
were you in REGEX mode?
Was the scope: All HTML
Sigil comes with a few saved searches: Join is one of them...But
only for simple joins.
Both the cases you show need care (Replace All is NOT a good idea)
The first may be desired (my regex for THAT ONE only allow IF the first letter being joined to is lower case)
Your second: What to do about the /span(s)?
Things can get uglier/not better FAST with a Replace All