In addition to the suggestion provided by
@trice602, using
%0D%0A%0D%0A, please note that relying on line breaks can continue to cause spacing issues if your document uses justified text.
When you inject %0D%0A or %0A, Word treats the input as a soft return (Shift + Enter). If the text formatting is justified, Word views the entire block as a single continuous paragraph and forces the text before the break to stretch from margin to margin, creating large, awkward gaps between words.
A more reliable and stable suggestion to fix this issue is to avoid line breaks entirely and utilize native Word paragraphs via repeating content controls.
Instead of formatting your data as a single text string:
"Paragraph 1\nParagraph 2"
You structure the input as a clean data array:
["Paragraph 1", "Paragraph 2"]
By mapping this array to a repeating content control in your Word template, Word will natively loop through the items and render each entry as a proper, individual paragraph.
This approach completely resolves the justification bug because Word handles the paragraph layout natively, keeping the alignment clean and preventing stretched text. It also creates a much cleaner separation between your data and your document presentation.
✅ If one of the responses here solved your issue, please mark it as Accepted so others facing the same problem can benefit as well.
👍 If this or any other reply here helped you, feel free to give it a Like. It helps others and is always appreciated.