We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
replacer
keepOriginalStyles: true
I presume that the following line duplicates non-textual elements in order to move w:Pr tags over to the inserted, and the right run.
w:Pr
docx/src/patcher/replacer.ts
Lines 68 to 82 in 9627957
However, the function for filtering non-textual elements currently doesn't account for <w:br>.
<w:br>
As a result, the w:br tag is added to the inserted run and also the right.
w:br
The text was updated successfully, but these errors were encountered:
I've added a PR that solves this for w:br tags.
However, looking at section 17.3.3 of the Office Open XML spec at https://ecma-international.org/publications-and-standards/standards/ecma-376/, there are many tags that can exist within a text run. In fact, it looks to me like w:Pr is the only run-child that should be duplicated.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I presume that the following line duplicates non-textual elements in order to move
w:Pr
tags over to the inserted, and the right run.docx/src/patcher/replacer.ts
Lines 68 to 82 in 9627957
However, the function for filtering non-textual elements currently doesn't account for
<w:br>
.As a result, the
w:br
tag is added to the inserted run and also the right.The text was updated successfully, but these errors were encountered: