harshankur / officeParser

A Node.js library to parse text out of any office file. Currently supports docx, pptx, xlsx and odt, odp, ods..
MIT License
123 stars 17 forks source link

(Question): How do I get line breaks? #10

Closed davidkcyip closed 10 months ago

davidkcyip commented 1 year ago

Hey, so after testing this plugin, it doesn't seem to return line-breaks for files processed. How do I get the plugin to return line-breaks?

harshankur commented 1 year ago

Ok, I can add a config argument to the parseOffice function which I can use to return line breaks as \n in the response.

kochecc2 commented 11 months ago

This would be helpful for my application as well.

harshankur commented 10 months ago

Hi, I have updated officeParser to version 4.0.4 where users have access to a config object that lets users set line breaks delimiters. The default is \n.