View Single Post
Old 01-27-2012, 02:52 PM   #10
Timur
Connoisseur
Timur can name that ebook in five wordsTimur can name that ebook in five wordsTimur can name that ebook in five wordsTimur can name that ebook in five wordsTimur can name that ebook in five wordsTimur can name that ebook in five wordsTimur can name that ebook in five wordsTimur can name that ebook in five wordsTimur can name that ebook in five wordsTimur can name that ebook in five wordsTimur can name that ebook in five words
 
Posts: 54
Karma: 37363
Join Date: Aug 2011
Location: Istanbul
Device: EBW1150, Nook STR
If you can not dump them, you can use these patterns in any editor that supports regexps(e.g. Notepad++ in Windows, jEdit in Win/Mac/Linux). Just extract all files and folders from epub, open all the html/xhtml files in the editor, and use replace operation on all opened files:

Find:
Code:
^(\s*)(<p[^>]*>)(.*)</p>\s*$
Replace:
Code:
\1\2\n\1\3\n\1</p>
Timur is offline   Reply With Quote