Correct contradictory documentation#53
Conversation
|
On further reflection I'm not sure I have this the right way around. I think the first question is what should the textract do. Should it preserve line breaks by default or not? |
The documentation around the preserveLineBreaks option is contradictory. Line 51 disagrees with line 71. Per the [source code](https://github.com/dbashford/textract/blob/5cc50dd9c3a4f76680b3737170645598b401ec64/lib/cli.js#L14) line 71 is correct
|
Few things happening here. The CLI has always been an afterthought (hence not having a test in place ensuring it worked). It's something easy to pull off and it lets folks quickly try out the library. I've always intended to core use of the library to be in processing things via a node app. Because of that, when I introduced the CLI option, readability was more important to me. It was a chance for someone with two commands ( I'd like to keep it that way. But you point out the documentation isn't clear there, so I'll remedy that. |
|
And by not clear I mean wrong= p |
Line 51 of the Readme disagrees with line 71. Per the source code line 71 is correct