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

Added support for \n in text elements #1346

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

pbvs
Copy link

@pbvs pbvs commented May 14, 2024

This is a pull request for fixing #1260 for discussion on this change. (resolves #1260)

In short there are two changes:

  1. When writing CT_Text to XML \n is replaced by the cml element <w:cr />
  2. When reading parsing xml the element <w:cr /> is replaced by \n
    I added a unit test to check that everything is replaced as expected.

Please let me know if i need to make additional changes.

Regards,
Pieter

@Bykiev
Copy link
Collaborator

Bykiev commented May 15, 2024

Can you please check failed tests?

@tonyqus tonyqus added this to the NPOI 2.7.2 milestone May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support adding line endings when a string containing \n is added to the document
3 participants