any-text icon indicating copy to clipboard operation
any-text copied to clipboard

It works but I lost paragraphs (returns) with DOCX

Open ascweb opened this issue 1 year ago • 0 comments

When I run it I got all the text as a single "block". All returns are removed.

 fs.readdirSync(base).forEach(file => {
        console.log("... ... " + file)
        const filename = file.split(".");
            reader.getText(base + "/" + file).then(function (data) {
                writeFile(base_txt, filename[0] + ".txt", data);
            });      
    });

What I'm missing?

ascweb avatar Aug 20 '22 05:08 ascweb