View Single Post
Old 03-11-2023, 05:26 PM   #10
DVdm
Enthusiast
DVdm knows what's going on.DVdm knows what's going on.DVdm knows what's going on.DVdm knows what's going on.DVdm knows what's going on.DVdm knows what's going on.DVdm knows what's going on.DVdm knows what's going on.DVdm knows what's going on.DVdm knows what's going on.DVdm knows what's going on.
 
Posts: 31
Karma: 25920
Join Date: Oct 2020
Device: Kobo Aura H2O (mark 5)
Quote:
Originally Posted by DVdm View Post
Yes!
Using the regex function, it took me a few hours to fix the book, and then I realised something.
This was a book that I had found as a pdf, which I had converted to epub with Calibre. In an edit session I noticed that there were a bunch of paragraphs with some kind of hardcoded linefeeds. With a general search and replace, I replaced all linefeeds with nothing, effectively deleting them, and then did a global beautifying files.
Stupid. I should have replaced the linefeeds with spaces.
So I retrieved the original pfd from my backups, converted to epub, replaced all linefeeds with a space, and beautified all files. Ready.
Silly me!

Last edited by DVdm; 03-12-2023 at 05:20 AM. Reason: spelling
DVdm is offline   Reply With Quote