Fix WebMerge Data Inserting Line Breaks Instead of Paragraph Breaks in Word
Question details
Ensure data routed from Formstack via WebMerge inserts proper paragraph breaks (^p) instead of manual line breaks (^l) in Word templates to maintain numbered list formatting.

- Product
- Microsoft Word / WebMerge
- Device & OS
- not provided
- Scenario
- Automating document generation using Formstack and WebMerge to fill out a Word template that contains numbered lists.
- Observed behavior
- WebMerge inserts manual line breaks (^l) for multiline text data, causing numbered lists to format incorrectly as a single list item rather than continuing to the next number.
Ensure you have access to your Formstack data routing settings and WebMerge automation pipeline, as this formatting issue is best resolved at the integration level before the final Word document is generated.
Use WebMerge Data Formatting Modifiers in the Pipeline
Format the data before the Word document is generated using built-in data formatting options to convert standard text newlines into Word paragraph marks.
The most reliable method is to replace the line breaks during the data transfer process. Attempting to use Word macros or manual Find and Replace after the document is already generated defeats the purpose of automation and can cause file corruption if pipeline arguments conflict.
Access your Formstack Documents (formerly WebMerge) dashboard and navigate to the specific Document mapping that is causing the issue.
Find the specific field tag in your mapping that handles the multiline text incoming from Formstack.
Update the field tag using Formstack's replacement modifiers to swap basic newlines with paragraph breaks. Check the official WebMerge 'Formatting Your Data' documentation for the exact syntax to map the incoming data as a true paragraph break.
Generate a test document through the pipeline to verify that the numbered list now successfully continues to the next number.

Use Word's Find and Replace for Post-Generation Fixes
If you cannot immediately modify the pipeline parameters, you can manually replace the line breaks in the generated Word document to restore list formatting.
Edit and Format Generated Documents Seamlessly with WPS Office
If you frequently deal with automated document generation and need a reliable, lightweight word processor to review or fix formatting issues, WPS Office offers complete compatibility with Microsoft Word documents. It handles complex lists, paragraph marks, and advanced Find and Replace functions effortlessly without the high subscription costs.
- 1. Download and Install: Get WPS Office for free from the official website and install it on your device.
- 2. Open Generated Documents: Launch WPS Writer and open your automated .docx files without worrying about compatibility loss.
- 3. Quickly Adjust Layouts: Use the highly intuitive ribbon interface to find and replace formatting characters or tweak list styles instantly.

Frequently Asked Questions
What is the difference between a manual line break and a paragraph break in Word?
A manual line break (inserted via Shift+Enter) moves text to the next line without starting a new paragraph, which keeps the text within the same numbered list item. A paragraph break (inserted via Enter) creates a distinct new paragraph, which prompts a numbered list to continue to the next sequential number.
Why does Formstack text area data break Word numbered lists?
Multiline text fields in web forms often use basic newline characters. When pushed through WebMerge into a Word document without formatting modifiers, these translate into manual line breaks (^l) instead of Word's expected paragraph marks (^p).
Can I automatically fix line breaks using a Word macro after generation?
While you can record a macro to find manual line breaks and replace them with paragraph marks, triggering it securely and automatically every time a document generates from an API is complex and prone to security restrictions. It is highly recommended to fix the data mapping directly in your WebMerge pipeline instead.




