Skip to content

Commit

Permalink
Fix tag condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dolanmiu committed Nov 20, 2024
1 parent 5dc87e9 commit ad201c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/patcher/replacer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const replacer = ({

if (keepOriginalStyles) {
const runElementNonTextualElements = runElementToBeReplaced.elements!.filter(
(e) => e.type === "element" && e.name === "w:Pr",
(e) => e.type === "element" && e.name === "w:rPr",
);

newRunElements = textJson.map((e) => ({
Expand Down

0 comments on commit ad201c8

Please sign in to comment.