public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Convert docx to txt as Word does
@ 2022-01-26 10:22 Giacomo Marchioro
  0 siblings, 0 replies; only message in thread
From: Giacomo Marchioro @ 2022-01-26 10:22 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 984 bytes --]

Thanks for this wonderful tool, I would like to convert a docx to txt 
exactly as Word does when saving a word document in txt from Save as 
function.

pandoc --wrap=none -s mydocument.docx -o ouput.txt 

This gives me quite good results except for the list it returns:

2. Main 1

   1.  sub-element 

         1.   sub-sub-element

With the entry indented with spaces I would like something like this:

2. Main 1

2.1.  sub-element

2.1.1.   sub-sub-element

I could not find an answer for solving it, I wonder if somebody could 
please help me. 

Best regards, 
Giacomo

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/c0f8a501-794b-49ca-a7a3-7599ce84760fn%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1618 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-26 10:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-26 10:22 Convert docx to txt as Word does Giacomo Marchioro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).