Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Newlines are generated in final .docx file. #56

Open
nickpreston24 opened this issue Aug 8, 2024 · 0 comments
Open

No Newlines are generated in final .docx file. #56

nickpreston24 opened this issue Aug 8, 2024 · 0 comments

Comments

@nickpreston24
Copy link

nickpreston24 commented Aug 8, 2024

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Run this code:

...
all_text = `# Hello, World!  Uh oh, no tabs or newlines!          foo bar\n baz \n\n\n 
    
    
    3 lines later...`;

    // convert
    const doc = await processor.process(all_text);
    const buffer = await doc.result;

    //save
    fs.writeFileSync(dest, buffer);
...

Expected behavior
I expected at minimum that newlines would be added to the docx.

Instead, no newlines were represented in the final .docx.

I red the docs, but the auto-generated docs were not helpful.

Is there some configs I'm missing? It's not in the README.md.

Thanks,

Nick

Additional context
image

@nickpreston24 nickpreston24 changed the title No Newlines or Spaces are generated in final .docx file. No Newlines are generated in final .docx file. Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant