View Single Post
Old 02-02-2015, 01:00 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,388
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I assume you are referring to the use of spaces to line up the columns in the output from nmap. Converting the attached docx with no options other than kindle output profile like this:

ebook-convert demo.docx .mobi --output-profile kindle

does not preserve the multiple spaces. So how are you getting them preserved in the first place?

As far as I can tell, looking inside the docx file, there is no instruction to preserve multiple spaces there. The docx file is a simply zip file, open it up and look at document.xml, you will see that there is no xml:space="preserve" on the <w:t> elements containing the nmap output.

I dont really understand why word itself preserves the spaces when displaying those sections at all, must be some undocumented feature, as I can find nothing in the docx spec about it.
kovidgoyal is online now   Reply With Quote