Fix Word 2019 Breaking Lines Around Inline Pictures in DOCX
Question details
The user needs to stop Word 2019 from inserting unwanted line breaks between text (such as parentheses) and inline pictures when converting legacy DOC files to the DOCX format.

- Product
- Microsoft Word 2019
- Device & OS
- not provided
- Scenario
- Converting older Word 97-2003 (.doc) documents to the newer .docx format.
- Observed behavior
- Word 2019 forces unwanted line breaks around inline pictures. Using a nonbreaking space prevents the break but introduces undesirable extra spacing.
Create a backup copy of your original .doc file before running any VBA scripts or changing compatibility settings, ensuring you can revert if the document layout shifts unexpectedly.
Use VBA to Apply Word 2010 Compatibility Mode
Use this method to expose legacy layout options that Microsoft hid in Office 2013 and later, allowing you to fix the inline picture wrapping bug.
Starting with Office 2013, Microsoft removed many legacy compatibility layout options from the user interface. By forcing the document into Word 2010 compatibility mode using a quick VBA command, you can restore older layout behaviors and reveal hidden formatting settings.
With your DOCX document open in Word 2019, press Alt + F11 on your keyboard to launch the Microsoft Visual Basic for Applications editor.
Press Ctrl + G to open the Immediate Window at the bottom of the VBA editor interface.
Type 'ActiveDocument.SetCompatibilityMode 14.0' into the Immediate Window and press Enter.
Close the VBA editor. Go to File > Options > Advanced, scroll down to the Compatibility options at the very bottom, and enable 'Use Word 2003 table autofit rules' if it is now available. Check your document layout.

Re-save the Document in the Older DOC Format
If you do not strictly require the DOCX format, reverting to the Word 97-2003 format bypasses the modern layout engine causing the issue.
Try WPS Office for Flawless Document Formatting
If Microsoft Word's layout changes and removed compatibility options are disrupting your workflow, consider switching to WPS Office. It provides a lightweight, highly compatible environment for both DOC and DOCX files without unexpected layout shifts.
- 1. Download WPS Office: Visit the official WPS website and download the free WPS Office suite for your operating system.
- 2. Open Your Document: Launch WPS Writer and open your original DOC or newly converted DOCX file.
- 3. Verify the Layout: Check the inline pictures and text formatting to ensure they display correctly without unwanted line breaks.

Frequently Asked Questions
Why does Word 2019 change the layout of my old DOC files?
When opening older DOC files in newer versions like Word 2019, Word applies a modernized layout engine. This can sometimes cause discrepancies, especially with inline objects, line spacing, and table autofit rules that were handled differently in Word 2003.
Can I use nonbreaking spaces to fix the picture line breaks?
While inserting a nonbreaking space (Ctrl + Shift + Space) between the text and the picture prevents the line break, it often introduces extra, unwanted horizontal spacing. It works as a quick workaround but is rarely the cleanest solution.
Where do I find the 'Use Word 2003 table autofit rules' setting in Word 2019?
In newer Word versions (2013 and later), this specific compatibility setting is hidden by default. You must downgrade the document's layout behavior (e.g., applying Word 2010 compatibility mode via VBA) to expose these legacy layout options under File > Options > Advanced.




