logo
search
Formatting Issues

Fix Word 2019 Breaking Lines Around Inline Pictures in DOCX

WPS Content ManagerWPS Content Manager Sep 27, 2026 868 views

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.

Fix Word 2019 Line Breaks Around Inline Pictures
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the VBA Editor

With your DOCX document open in Word 2019, press Alt + F11 on your keyboard to launch the Microsoft Visual Basic for Applications editor.

2
Access the Immediate Window

Press Ctrl + G to open the Immediate Window at the bottom of the VBA editor interface.

3
Run the Compatibility Command

Type 'ActiveDocument.SetCompatibilityMode 14.0' into the Immediate Window and press Enter.

4
Enable the Autofit Setting

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.

Use VBA to Apply Word 2010 Compatibility Mode
VBA Execution: You do not need to save the document as a macro-enabled file (.docm) just to run this one-time layout adjustment command via the Immediate Window.
Free Microsoft Office alternative

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. 1. Download WPS Office: Visit the official WPS website and download the free WPS Office suite for your operating system.
  2. 2. Open Your Document: Launch WPS Writer and open your original DOC or newly converted DOCX file.
  3. 3. Verify the Layout: Check the inline pictures and text formatting to ensure they display correctly without unwanted line breaks.
Highly compatible with Microsoft Word DOC and DOCX formats without unexpected layout shifts.Advanced layout features that respect original legacy document formatting.Free, lightweight, and incredibly fast to install and launch.Familiar user interface requiring zero learning curve for seamless migration.
microsoft office alternative - wps office

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.