I use ^[ ] in regex search and replace in my wordprocessor to remove leading spaces, which are evil.
I then use [ ]$ to remove trailing spaces.
Optionally you can use ^$ to remove empty lines.
All referring to source documents. Calibre will export/convert to RTF which can be Wordprocessed and Save As .docx to reconvert to an ebook (MS Word or LibreOffice Writer). I do that for badly formatted ebooks rather than editing CSS.
I didn't find any better way of "export" than RTF.
|