-
-
Notifications
You must be signed in to change notification settings - Fork 551
Closed
Description
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.
Lines 68 to 82 in 9627957
if (keepOriginalStyles) { | |
const runElementNonTextualElements = runElementToBeReplaced.elements!.filter( | |
(e) => e.type === "element" && e.name !== "w:t", | |
); | |
newRunElements = textJson.map((e) => ({ | |
...e, | |
elements: [...runElementNonTextualElements, ...e.elements!], | |
})); | |
patchedRightElement = { | |
...right, | |
elements: [...runElementNonTextualElements, ...right.elements!], | |
}; | |
} |
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.
Metadata
Metadata
Assignees
Labels
No labels