Skip to content

Commit

Permalink
Export: Change how new lines are handled when replacing (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinFutterer authored Feb 29, 2024
1 parent e0c24ff commit 2f49f12
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ static void replaceInParagraphs(List<XWPFParagraph> xwpfParagraphs, Map<String,
xwpfParagraph.setAlignment(ParagraphAlignment.LEFT);
xwpfRun.setText(value[i].trim());
if (i < value.length - 1) {
xwpfRun.addCarriageReturn();
xwpfRun.addCarriageReturn();
xwpfRun.addBreak();
xwpfRun.addBreak();
}
}
// TODO: when xwpfRun.removeCarriageReturn is implemented:
// TODO: when xwpfRun.removeBreak is implemented:
// replace the above for loop with an enhanced one
// remove the extra if inside the loop
// call removeCarriageReturn twice outside the loop
// call removeBreak twice outside the loop
xwpfRunText = "";
}
//general case for non contributor list
Expand Down

0 comments on commit 2f49f12

Please sign in to comment.