View Single Post
Old 06-08-2019, 04:03 AM   #125
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,525
Karma: 108666825
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
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.
Quoth is offline   Reply With Quote